Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf6dcc35e1
commit
22a74dcf50
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// template <class charT> class collate_byname
|
// template <class charT> class collate_byname
|
||||||
|
|
||||||
// int compare(const charT* low1, const charT* high1,
|
// int compare(const charT* low1, const charT* high1,
|
||||||
// const charT* low2, const charT* high2) const;
|
// const charT* low2, const charT* high2) const;
|
||||||
|
|
||||||
// I'm currently unable to confirm that collation based on named locales
|
// I'm currently unable to confirm that collation based on named locales
|
||||||
|
@ -9,16 +9,16 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT>
|
// template <class charT>
|
||||||
// class collate_byname
|
// class collate_byname
|
||||||
// : public collate<charT>
|
// : public collate<charT>
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef basic_string<charT> string_type;
|
// typedef basic_string<charT> string_type;
|
||||||
// explicit collate_byname(const char*, size_t refs = 0);
|
// explicit collate_byname(const char*, size_t refs = 0);
|
||||||
// explicit collate_byname(const string&, size_t refs = 0);
|
// explicit collate_byname(const string&, size_t refs = 0);
|
||||||
// protected:
|
// protected:
|
||||||
// ~collate_byname();
|
// ~collate_byname();
|
||||||
// };
|
// };
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,13 +11,12 @@
|
|||||||
|
|
||||||
// template <class charT> class collate;
|
// template <class charT> class collate;
|
||||||
|
|
||||||
// int compare(const charT* low1, const charT* high1,
|
// int compare(const charT* low1, const charT* high1,
|
||||||
// const charT* low2, const charT* high2) const;
|
// const charT* low2, const charT* high2) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
std::locale l = std::locale::classic();
|
std::locale l = std::locale::classic();
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
std::locale l = std::locale::classic();
|
std::locale l = std::locale::classic();
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT>
|
// template <class charT>
|
||||||
// class collate
|
// class collate
|
||||||
// : public locale::facet {
|
// : public locale::facet {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef basic_string<charT>string_type;
|
// typedef basic_string<charT>string_type;
|
||||||
//
|
//
|
||||||
// static locale::id id;
|
// static locale::id id;
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
@ -10,22 +10,22 @@
|
|||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// class ctype_base
|
// class ctype_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef T mask;
|
// typedef T mask;
|
||||||
//
|
//
|
||||||
// // numeric values are for exposition only.
|
// // numeric values are for exposition only.
|
||||||
// static const mask space = 1 << 0;
|
// static const mask space = 1 << 0;
|
||||||
// static const mask print = 1 << 1;
|
// static const mask print = 1 << 1;
|
||||||
// static const mask cntrl = 1 << 2;
|
// static const mask cntrl = 1 << 2;
|
||||||
// static const mask upper = 1 << 3;
|
// static const mask upper = 1 << 3;
|
||||||
// static const mask lower = 1 << 4;
|
// static const mask lower = 1 << 4;
|
||||||
// static const mask alpha = 1 << 5;
|
// static const mask alpha = 1 << 5;
|
||||||
// static const mask digit = 1 << 6;
|
// static const mask digit = 1 << 6;
|
||||||
// static const mask punct = 1 << 7;
|
// static const mask punct = 1 << 7;
|
||||||
// static const mask xdigit = 1 << 8;
|
// static const mask xdigit = 1 << 8;
|
||||||
// static const mask alnum = alpha | digit;
|
// static const mask alnum = alpha | digit;
|
||||||
// static const mask graph = alnum | punct;
|
// static const mask graph = alnum | punct;
|
||||||
// };
|
// };
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
@ -54,4 +54,4 @@ int main()
|
|||||||
& std::ctype_base::xdigit) == 0);
|
& std::ctype_base::xdigit) == 0);
|
||||||
assert(std::ctype_base::alnum == (std::ctype_base::alpha | std::ctype_base::digit));
|
assert(std::ctype_base::alnum == (std::ctype_base::alpha | std::ctype_base::digit));
|
||||||
assert(std::ctype_base::graph == (std::ctype_base::alnum | std::ctype_base::punct));
|
assert(std::ctype_base::graph == (std::ctype_base::alnum | std::ctype_base::punct));
|
||||||
}
|
}
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <>
|
// template <>
|
||||||
// class ctype<char>
|
// class ctype<char>
|
||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public ctype_base
|
// public ctype_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef char char_type;
|
// typedef char char_type;
|
||||||
// };
|
// };
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class codecvt_base
|
// class codecvt_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// enum result {ok, partial, error, noconv};
|
// enum result {ok, partial, error, noconv};
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<char16_t, char, mbstate_t>
|
// template <> class codecvt<char16_t, char, mbstate_t>
|
||||||
|
|
||||||
// result in(stateT& state,
|
// result in(stateT& state,
|
||||||
// const externT* from, const externT* from_end, const externT*& from_next,
|
// const externT* from, const externT* from_end, const externT*& from_next,
|
||||||
// internT* to, internT* to_end, internT*& to_next) const;
|
// internT* to, internT* to_end, internT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<char16_t, char, mbstate_t>
|
// template <> class codecvt<char16_t, char, mbstate_t>
|
||||||
|
|
||||||
// result out(stateT& state,
|
// result out(stateT& state,
|
||||||
// const internT* from, const internT* from_end, const internT*& from_next,
|
// const internT* from, const internT* from_end, const internT*& from_next,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<char32_t, char, mbstate_t>
|
// template <> class codecvt<char32_t, char, mbstate_t>
|
||||||
|
|
||||||
// result in(stateT& state,
|
// result in(stateT& state,
|
||||||
// const externT* from, const externT* from_end, const externT*& from_next,
|
// const externT* from, const externT* from_end, const externT*& from_next,
|
||||||
// internT* to, internT* to_end, internT*& to_next) const;
|
// internT* to, internT* to_end, internT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<char32_t, char, mbstate_t>
|
// template <> class codecvt<char32_t, char, mbstate_t>
|
||||||
|
|
||||||
// result out(stateT& state,
|
// result out(stateT& state,
|
||||||
// const internT* from, const internT* from_end, const internT*& from_next,
|
// const internT* from, const internT* from_end, const internT*& from_next,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<char, char, mbstate_t>
|
// template <> class codecvt<char, char, mbstate_t>
|
||||||
|
|
||||||
// result in(stateT& state,
|
// result in(stateT& state,
|
||||||
// const externT* from, const externT* from_end, const externT*& from_next,
|
// const externT* from, const externT* from_end, const externT*& from_next,
|
||||||
// internT* to, internT* to_end, internT*& to_next) const;
|
// internT* to, internT* to_end, internT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<char, char, mbstate_t>
|
// template <> class codecvt<char, char, mbstate_t>
|
||||||
|
|
||||||
// result out(stateT& state,
|
// result out(stateT& state,
|
||||||
// const internT* from, const internT* from_end, const internT*& from_next,
|
// const internT* from, const internT* from_end, const internT*& from_next,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<wchar_t, char, mbstate_t>
|
// template <> class codecvt<wchar_t, char, mbstate_t>
|
||||||
|
|
||||||
// result in(stateT& state,
|
// result in(stateT& state,
|
||||||
// const externT* from, const externT* from_end, const externT*& from_next,
|
// const externT* from, const externT* from_end, const externT*& from_next,
|
||||||
// internT* to, internT* to_end, internT*& to_next) const;
|
// internT* to, internT* to_end, internT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
// template <> class codecvt<wchar_t, char, mbstate_t>
|
// template <> class codecvt<wchar_t, char, mbstate_t>
|
||||||
|
|
||||||
// result out(stateT& state,
|
// result out(stateT& state,
|
||||||
// const internT* from, const internT* from_end, const internT*& from_next,
|
// const internT* from, const internT* from_end, const internT*& from_next,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public codecvt_base
|
// public codecvt_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef char intern_type;
|
// typedef char intern_type;
|
||||||
// typedef char extern_type;
|
// typedef char extern_type;
|
||||||
// typedef mbstate_t state_type;
|
// typedef mbstate_t state_type;
|
||||||
// ...
|
// ...
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public codecvt_base
|
// public codecvt_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef char16_t intern_type;
|
// typedef char16_t intern_type;
|
||||||
// typedef char extern_type;
|
// typedef char extern_type;
|
||||||
// typedef mbstate_t state_type;
|
// typedef mbstate_t state_type;
|
||||||
// ...
|
// ...
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public codecvt_base
|
// public codecvt_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef char32_t intern_type;
|
// typedef char32_t intern_type;
|
||||||
// typedef char extern_type;
|
// typedef char extern_type;
|
||||||
// typedef mbstate_t state_type;
|
// typedef mbstate_t state_type;
|
||||||
// ...
|
// ...
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public codecvt_base
|
// public codecvt_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef wchar_t intern_type;
|
// typedef wchar_t intern_type;
|
||||||
// typedef char extern_type;
|
// typedef char extern_type;
|
||||||
// typedef mbstate_t state_type;
|
// typedef mbstate_t state_type;
|
||||||
// ...
|
// ...
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
@ -24,37 +24,37 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.is(F::space, L' '));
|
assert(f.is(F::space, L' '));
|
||||||
assert(!f.is(F::space, L'A'));
|
assert(!f.is(F::space, L'A'));
|
||||||
|
|
||||||
assert(f.is(F::print, L' '));
|
assert(f.is(F::print, L' '));
|
||||||
assert(!f.is(F::print, L'\x07'));
|
assert(!f.is(F::print, L'\x07'));
|
||||||
|
|
||||||
assert(f.is(F::cntrl, L'\x07'));
|
assert(f.is(F::cntrl, L'\x07'));
|
||||||
assert(!f.is(F::cntrl, L' '));
|
assert(!f.is(F::cntrl, L' '));
|
||||||
|
|
||||||
assert(f.is(F::upper, L'A'));
|
assert(f.is(F::upper, L'A'));
|
||||||
assert(!f.is(F::upper, L'a'));
|
assert(!f.is(F::upper, L'a'));
|
||||||
|
|
||||||
assert(f.is(F::lower, L'a'));
|
assert(f.is(F::lower, L'a'));
|
||||||
assert(!f.is(F::lower, L'A'));
|
assert(!f.is(F::lower, L'A'));
|
||||||
|
|
||||||
assert(f.is(F::alpha, L'a'));
|
assert(f.is(F::alpha, L'a'));
|
||||||
assert(!f.is(F::alpha, L'1'));
|
assert(!f.is(F::alpha, L'1'));
|
||||||
|
|
||||||
assert(f.is(F::digit, L'1'));
|
assert(f.is(F::digit, L'1'));
|
||||||
assert(!f.is(F::digit, L'a'));
|
assert(!f.is(F::digit, L'a'));
|
||||||
|
|
||||||
assert(f.is(F::punct, L'.'));
|
assert(f.is(F::punct, L'.'));
|
||||||
assert(!f.is(F::punct, L'a'));
|
assert(!f.is(F::punct, L'a'));
|
||||||
|
|
||||||
assert(f.is(F::xdigit, L'a'));
|
assert(f.is(F::xdigit, L'a'));
|
||||||
assert(!f.is(F::xdigit, L'g'));
|
assert(!f.is(F::xdigit, L'g'));
|
||||||
|
|
||||||
assert(f.is(F::alnum, L'a'));
|
assert(f.is(F::alnum, L'a'));
|
||||||
assert(!f.is(F::alnum, L'.'));
|
assert(!f.is(F::alnum, L'.'));
|
||||||
|
|
||||||
assert(f.is(F::graph, L'.'));
|
assert(f.is(F::graph, L'.'));
|
||||||
assert(!f.is(F::graph, L'\x07'));
|
assert(!f.is(F::graph, L'\x07'));
|
||||||
|
|
||||||
@ -67,37 +67,37 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.is(F::space, L' '));
|
assert(f.is(F::space, L' '));
|
||||||
assert(!f.is(F::space, L'A'));
|
assert(!f.is(F::space, L'A'));
|
||||||
|
|
||||||
assert(f.is(F::print, L' '));
|
assert(f.is(F::print, L' '));
|
||||||
assert(!f.is(F::print, L'\x07'));
|
assert(!f.is(F::print, L'\x07'));
|
||||||
|
|
||||||
assert(f.is(F::cntrl, L'\x07'));
|
assert(f.is(F::cntrl, L'\x07'));
|
||||||
assert(!f.is(F::cntrl, L' '));
|
assert(!f.is(F::cntrl, L' '));
|
||||||
|
|
||||||
assert(f.is(F::upper, L'A'));
|
assert(f.is(F::upper, L'A'));
|
||||||
assert(!f.is(F::upper, L'a'));
|
assert(!f.is(F::upper, L'a'));
|
||||||
|
|
||||||
assert(f.is(F::lower, L'a'));
|
assert(f.is(F::lower, L'a'));
|
||||||
assert(!f.is(F::lower, L'A'));
|
assert(!f.is(F::lower, L'A'));
|
||||||
|
|
||||||
assert(f.is(F::alpha, L'a'));
|
assert(f.is(F::alpha, L'a'));
|
||||||
assert(!f.is(F::alpha, L'1'));
|
assert(!f.is(F::alpha, L'1'));
|
||||||
|
|
||||||
assert(f.is(F::digit, L'1'));
|
assert(f.is(F::digit, L'1'));
|
||||||
assert(!f.is(F::digit, L'a'));
|
assert(!f.is(F::digit, L'a'));
|
||||||
|
|
||||||
assert(f.is(F::punct, L'.'));
|
assert(f.is(F::punct, L'.'));
|
||||||
assert(!f.is(F::punct, L'a'));
|
assert(!f.is(F::punct, L'a'));
|
||||||
|
|
||||||
assert(f.is(F::xdigit, L'a'));
|
assert(f.is(F::xdigit, L'a'));
|
||||||
assert(!f.is(F::xdigit, L'g'));
|
assert(!f.is(F::xdigit, L'g'));
|
||||||
|
|
||||||
assert(f.is(F::alnum, L'a'));
|
assert(f.is(F::alnum, L'a'));
|
||||||
assert(!f.is(F::alnum, L'.'));
|
assert(!f.is(F::alnum, L'.'));
|
||||||
|
|
||||||
assert(f.is(F::graph, L'.'));
|
assert(f.is(F::graph, L'.'));
|
||||||
assert(!f.is(F::graph, L'\x07'));
|
assert(!f.is(F::graph, L'\x07'));
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ int main()
|
|||||||
std::vector<F::mask> m(in.size());
|
std::vector<F::mask> m(in.size());
|
||||||
const wchar_t* h = f.is(in.data(), in.data() + in.size(), m.data());
|
const wchar_t* h = f.is(in.data(), in.data() + in.size(), m.data());
|
||||||
assert(h == in.data() + in.size());
|
assert(h == in.data() + in.size());
|
||||||
|
|
||||||
// L'\x00DA'
|
// L'\x00DA'
|
||||||
assert(!(m[0] & F::space));
|
assert(!(m[0] & F::space));
|
||||||
assert( (m[0] & F::print));
|
assert( (m[0] & F::print));
|
||||||
@ -45,7 +45,7 @@ int main()
|
|||||||
assert(!(m[0] & F::blank));
|
assert(!(m[0] & F::blank));
|
||||||
assert( (m[0] & F::alnum));
|
assert( (m[0] & F::alnum));
|
||||||
assert( (m[0] & F::graph));
|
assert( (m[0] & F::graph));
|
||||||
|
|
||||||
// L' '
|
// L' '
|
||||||
assert( (m[1] & F::space));
|
assert( (m[1] & F::space));
|
||||||
assert( (m[1] & F::print));
|
assert( (m[1] & F::print));
|
||||||
@ -59,7 +59,7 @@ int main()
|
|||||||
assert( (m[1] & F::blank));
|
assert( (m[1] & F::blank));
|
||||||
assert(!(m[1] & F::alnum));
|
assert(!(m[1] & F::alnum));
|
||||||
assert(!(m[1] & F::graph));
|
assert(!(m[1] & F::graph));
|
||||||
|
|
||||||
// L'A'
|
// L'A'
|
||||||
assert(!(m[2] & F::space));
|
assert(!(m[2] & F::space));
|
||||||
assert( (m[2] & F::print));
|
assert( (m[2] & F::print));
|
||||||
@ -73,7 +73,7 @@ int main()
|
|||||||
assert(!(m[2] & F::blank));
|
assert(!(m[2] & F::blank));
|
||||||
assert( (m[2] & F::alnum));
|
assert( (m[2] & F::alnum));
|
||||||
assert( (m[2] & F::graph));
|
assert( (m[2] & F::graph));
|
||||||
|
|
||||||
// L'\x07'
|
// L'\x07'
|
||||||
assert(!(m[3] & F::space));
|
assert(!(m[3] & F::space));
|
||||||
assert(!(m[3] & F::print));
|
assert(!(m[3] & F::print));
|
||||||
@ -87,7 +87,7 @@ int main()
|
|||||||
assert(!(m[3] & F::blank));
|
assert(!(m[3] & F::blank));
|
||||||
assert(!(m[3] & F::alnum));
|
assert(!(m[3] & F::alnum));
|
||||||
assert(!(m[3] & F::graph));
|
assert(!(m[3] & F::graph));
|
||||||
|
|
||||||
// L'.'
|
// L'.'
|
||||||
assert(!(m[4] & F::space));
|
assert(!(m[4] & F::space));
|
||||||
assert( (m[4] & F::print));
|
assert( (m[4] & F::print));
|
||||||
@ -101,7 +101,7 @@ int main()
|
|||||||
assert(!(m[4] & F::blank));
|
assert(!(m[4] & F::blank));
|
||||||
assert(!(m[4] & F::alnum));
|
assert(!(m[4] & F::alnum));
|
||||||
assert( (m[4] & F::graph));
|
assert( (m[4] & F::graph));
|
||||||
|
|
||||||
// L'a'
|
// L'a'
|
||||||
assert(!(m[5] & F::space));
|
assert(!(m[5] & F::space));
|
||||||
assert( (m[5] & F::print));
|
assert( (m[5] & F::print));
|
||||||
@ -115,7 +115,7 @@ int main()
|
|||||||
assert(!(m[5] & F::blank));
|
assert(!(m[5] & F::blank));
|
||||||
assert( (m[5] & F::alnum));
|
assert( (m[5] & F::alnum));
|
||||||
assert( (m[5] & F::graph));
|
assert( (m[5] & F::graph));
|
||||||
|
|
||||||
// L'1'
|
// L'1'
|
||||||
assert(!(m[6] & F::space));
|
assert(!(m[6] & F::space));
|
||||||
assert( (m[6] & F::print));
|
assert( (m[6] & F::print));
|
||||||
@ -140,7 +140,7 @@ int main()
|
|||||||
std::vector<F::mask> m(in.size());
|
std::vector<F::mask> m(in.size());
|
||||||
const wchar_t* h = f.is(in.data(), in.data() + in.size(), m.data());
|
const wchar_t* h = f.is(in.data(), in.data() + in.size(), m.data());
|
||||||
assert(h == in.data() + in.size());
|
assert(h == in.data() + in.size());
|
||||||
|
|
||||||
// L'\x00DA'
|
// L'\x00DA'
|
||||||
assert(!(m[0] & F::space));
|
assert(!(m[0] & F::space));
|
||||||
assert(!(m[0] & F::print));
|
assert(!(m[0] & F::print));
|
||||||
@ -154,7 +154,7 @@ int main()
|
|||||||
assert(!(m[0] & F::blank));
|
assert(!(m[0] & F::blank));
|
||||||
assert(!(m[0] & F::alnum));
|
assert(!(m[0] & F::alnum));
|
||||||
assert(!(m[0] & F::graph));
|
assert(!(m[0] & F::graph));
|
||||||
|
|
||||||
// L' '
|
// L' '
|
||||||
assert( (m[1] & F::space));
|
assert( (m[1] & F::space));
|
||||||
assert( (m[1] & F::print));
|
assert( (m[1] & F::print));
|
||||||
@ -168,7 +168,7 @@ int main()
|
|||||||
assert( (m[1] & F::blank));
|
assert( (m[1] & F::blank));
|
||||||
assert(!(m[1] & F::alnum));
|
assert(!(m[1] & F::alnum));
|
||||||
assert(!(m[1] & F::graph));
|
assert(!(m[1] & F::graph));
|
||||||
|
|
||||||
// L'A'
|
// L'A'
|
||||||
assert(!(m[2] & F::space));
|
assert(!(m[2] & F::space));
|
||||||
assert( (m[2] & F::print));
|
assert( (m[2] & F::print));
|
||||||
@ -182,7 +182,7 @@ int main()
|
|||||||
assert(!(m[2] & F::blank));
|
assert(!(m[2] & F::blank));
|
||||||
assert( (m[2] & F::alnum));
|
assert( (m[2] & F::alnum));
|
||||||
assert( (m[2] & F::graph));
|
assert( (m[2] & F::graph));
|
||||||
|
|
||||||
// L'\x07'
|
// L'\x07'
|
||||||
assert(!(m[3] & F::space));
|
assert(!(m[3] & F::space));
|
||||||
assert(!(m[3] & F::print));
|
assert(!(m[3] & F::print));
|
||||||
@ -196,7 +196,7 @@ int main()
|
|||||||
assert(!(m[3] & F::blank));
|
assert(!(m[3] & F::blank));
|
||||||
assert(!(m[3] & F::alnum));
|
assert(!(m[3] & F::alnum));
|
||||||
assert(!(m[3] & F::graph));
|
assert(!(m[3] & F::graph));
|
||||||
|
|
||||||
// L'.'
|
// L'.'
|
||||||
assert(!(m[4] & F::space));
|
assert(!(m[4] & F::space));
|
||||||
assert( (m[4] & F::print));
|
assert( (m[4] & F::print));
|
||||||
@ -210,7 +210,7 @@ int main()
|
|||||||
assert(!(m[4] & F::blank));
|
assert(!(m[4] & F::blank));
|
||||||
assert(!(m[4] & F::alnum));
|
assert(!(m[4] & F::alnum));
|
||||||
assert( (m[4] & F::graph));
|
assert( (m[4] & F::graph));
|
||||||
|
|
||||||
// L'a'
|
// L'a'
|
||||||
assert(!(m[5] & F::space));
|
assert(!(m[5] & F::space));
|
||||||
assert( (m[5] & F::print));
|
assert( (m[5] & F::print));
|
||||||
@ -224,7 +224,7 @@ int main()
|
|||||||
assert(!(m[5] & F::blank));
|
assert(!(m[5] & F::blank));
|
||||||
assert( (m[5] & F::alnum));
|
assert( (m[5] & F::alnum));
|
||||||
assert( (m[5] & F::graph));
|
assert( (m[5] & F::graph));
|
||||||
|
|
||||||
// L'1'
|
// L'1'
|
||||||
assert(!(m[6] & F::space));
|
assert(!(m[6] & F::space));
|
||||||
assert( (m[6] & F::print));
|
assert( (m[6] & F::print));
|
||||||
|
@ -23,7 +23,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.narrow(L' ', '*') == ' ');
|
assert(f.narrow(L' ', '*') == ' ');
|
||||||
assert(f.narrow(L'A', '*') == 'A');
|
assert(f.narrow(L'A', '*') == 'A');
|
||||||
assert(f.narrow(L'\x07', '*') == '\x07');
|
assert(f.narrow(L'\x07', '*') == '\x07');
|
||||||
@ -38,7 +38,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.narrow(L' ', '*') == ' ');
|
assert(f.narrow(L' ', '*') == ' ');
|
||||||
assert(f.narrow(L'A', '*') == 'A');
|
assert(f.narrow(L'A', '*') == 'A');
|
||||||
assert(f.narrow(L'\x07', '*') == '\x07');
|
assert(f.narrow(L'\x07', '*') == '\x07');
|
||||||
|
@ -27,7 +27,7 @@ int main()
|
|||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::wstring in(L" A\x07.a1\xDA");
|
std::wstring in(L" A\x07.a1\xDA");
|
||||||
std::vector<char> v(in.size());
|
std::vector<char> v(in.size());
|
||||||
|
|
||||||
assert(f.narrow(&in[0], in.data() + in.size(), '*', v.data()) == in.data() + in.size());
|
assert(f.narrow(&in[0], in.data() + in.size(), '*', v.data()) == in.data() + in.size());
|
||||||
assert(v[0] == ' ');
|
assert(v[0] == ' ');
|
||||||
assert(v[1] == 'A');
|
assert(v[1] == 'A');
|
||||||
@ -45,7 +45,7 @@ int main()
|
|||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::wstring in(L" A\x07.a1\xDA");
|
std::wstring in(L" A\x07.a1\xDA");
|
||||||
std::vector<char> v(in.size());
|
std::vector<char> v(in.size());
|
||||||
|
|
||||||
assert(f.narrow(&in[0], in.data() + in.size(), '*', v.data()) == in.data() + in.size());
|
assert(f.narrow(&in[0], in.data() + in.size(), '*', v.data()) == in.data() + in.size());
|
||||||
assert(v[0] == ' ');
|
assert(v[0] == ' ');
|
||||||
assert(v[1] == 'A');
|
assert(v[1] == 'A');
|
||||||
|
@ -23,7 +23,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.tolower(' ') == ' ');
|
assert(f.tolower(' ') == ' ');
|
||||||
assert(f.tolower('A') == 'a');
|
assert(f.tolower('A') == 'a');
|
||||||
assert(f.tolower('\x07') == '\x07');
|
assert(f.tolower('\x07') == '\x07');
|
||||||
@ -39,7 +39,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.tolower(' ') == ' ');
|
assert(f.tolower(' ') == ' ');
|
||||||
assert(f.tolower('A') == 'a');
|
assert(f.tolower('A') == 'a');
|
||||||
assert(f.tolower('\x07') == '\x07');
|
assert(f.tolower('\x07') == '\x07');
|
||||||
@ -55,7 +55,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.tolower(L' ') == L' ');
|
assert(f.tolower(L' ') == L' ');
|
||||||
assert(f.tolower(L'A') == L'a');
|
assert(f.tolower(L'A') == L'a');
|
||||||
assert(f.tolower(L'\x07') == L'\x07');
|
assert(f.tolower(L'\x07') == L'\x07');
|
||||||
@ -71,7 +71,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.tolower(L' ') == L' ');
|
assert(f.tolower(L' ') == L' ');
|
||||||
assert(f.tolower(L'A') == L'a');
|
assert(f.tolower(L'A') == L'a');
|
||||||
assert(f.tolower(L'\x07') == L'\x07');
|
assert(f.tolower(L'\x07') == L'\x07');
|
||||||
|
@ -25,7 +25,7 @@ int main()
|
|||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::string in("\xDA A\x07.a1");
|
std::string in("\xDA A\x07.a1");
|
||||||
|
|
||||||
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == '\xDA');
|
assert(in[0] == '\xDA');
|
||||||
assert(in[1] == ' ');
|
assert(in[1] == ' ');
|
||||||
@ -42,7 +42,7 @@ int main()
|
|||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::string in("\xDA A\x07.a1");
|
std::string in("\xDA A\x07.a1");
|
||||||
|
|
||||||
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == '\xDA');
|
assert(in[0] == '\xDA');
|
||||||
assert(in[1] == ' ');
|
assert(in[1] == ' ');
|
||||||
@ -59,7 +59,7 @@ int main()
|
|||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::wstring in(L"\xDA A\x07.a1");
|
std::wstring in(L"\xDA A\x07.a1");
|
||||||
|
|
||||||
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == L'\xFA');
|
assert(in[0] == L'\xFA');
|
||||||
assert(in[1] == L' ');
|
assert(in[1] == L' ');
|
||||||
@ -76,7 +76,7 @@ int main()
|
|||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::wstring in(L"\xDA A\x07.a1");
|
std::wstring in(L"\xDA A\x07.a1");
|
||||||
|
|
||||||
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == L'\xDA');
|
assert(in[0] == L'\xDA');
|
||||||
assert(in[1] == L' ');
|
assert(in[1] == L' ');
|
||||||
|
@ -23,7 +23,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.toupper(' ') == ' ');
|
assert(f.toupper(' ') == ' ');
|
||||||
assert(f.toupper('A') == 'A');
|
assert(f.toupper('A') == 'A');
|
||||||
assert(f.toupper('\x07') == '\x07');
|
assert(f.toupper('\x07') == '\x07');
|
||||||
@ -39,7 +39,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.toupper(' ') == ' ');
|
assert(f.toupper(' ') == ' ');
|
||||||
assert(f.toupper('A') == 'A');
|
assert(f.toupper('A') == 'A');
|
||||||
assert(f.toupper('\x07') == '\x07');
|
assert(f.toupper('\x07') == '\x07');
|
||||||
@ -55,7 +55,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.toupper(L' ') == L' ');
|
assert(f.toupper(L' ') == L' ');
|
||||||
assert(f.toupper(L'A') == L'A');
|
assert(f.toupper(L'A') == L'A');
|
||||||
assert(f.toupper(L'\x07') == L'\x07');
|
assert(f.toupper(L'\x07') == L'\x07');
|
||||||
@ -71,7 +71,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.toupper(L' ') == L' ');
|
assert(f.toupper(L' ') == L' ');
|
||||||
assert(f.toupper(L'A') == L'A');
|
assert(f.toupper(L'A') == L'A');
|
||||||
assert(f.toupper(L'\x07') == L'\x07');
|
assert(f.toupper(L'\x07') == L'\x07');
|
||||||
|
@ -25,7 +25,7 @@ int main()
|
|||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::string in("\xFA A\x07.a1");
|
std::string in("\xFA A\x07.a1");
|
||||||
|
|
||||||
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == '\xFA');
|
assert(in[0] == '\xFA');
|
||||||
assert(in[1] == ' ');
|
assert(in[1] == ' ');
|
||||||
@ -42,7 +42,7 @@ int main()
|
|||||||
typedef std::ctype<char> F;
|
typedef std::ctype<char> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::string in("\xFA A\x07.a1");
|
std::string in("\xFA A\x07.a1");
|
||||||
|
|
||||||
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == '\xFA');
|
assert(in[0] == '\xFA');
|
||||||
assert(in[1] == ' ');
|
assert(in[1] == ' ');
|
||||||
@ -59,7 +59,7 @@ int main()
|
|||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::wstring in(L"\xFA A\x07.a1");
|
std::wstring in(L"\xFA A\x07.a1");
|
||||||
|
|
||||||
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == L'\xDA');
|
assert(in[0] == L'\xDA');
|
||||||
assert(in[1] == L' ');
|
assert(in[1] == L' ');
|
||||||
@ -76,7 +76,7 @@ int main()
|
|||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::wstring in(L"\xFA A\x07.a1");
|
std::wstring in(L"\xFA A\x07.a1");
|
||||||
|
|
||||||
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
|
||||||
assert(in[0] == L'\xFA');
|
assert(in[0] == L'\xFA');
|
||||||
assert(in[1] == L' ');
|
assert(in[1] == L' ');
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
// class ctype_byname
|
// class ctype_byname
|
||||||
// : public ctype<CharT>
|
// : public ctype<CharT>
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// explicit ctype_byname(const char*, size_t = 0);
|
// explicit ctype_byname(const char*, size_t = 0);
|
||||||
// explicit ctype_byname(const string&, size_t = 0);
|
// explicit ctype_byname(const string&, size_t = 0);
|
||||||
//
|
//
|
||||||
// protected:
|
// protected:
|
||||||
// ~ctype_byname();
|
// ~ctype_byname();
|
||||||
// };
|
// };
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -26,7 +26,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.widen(' ') == L' ');
|
assert(f.widen(' ') == L' ');
|
||||||
assert(f.widen('A') == L'A');
|
assert(f.widen('A') == L'A');
|
||||||
assert(f.widen('\x07') == L'\x07');
|
assert(f.widen('\x07') == L'\x07');
|
||||||
@ -41,7 +41,7 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::ctype<wchar_t> F;
|
typedef std::ctype<wchar_t> F;
|
||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
|
|
||||||
assert(f.widen(' ') == L' ');
|
assert(f.widen(' ') == L' ');
|
||||||
assert(f.widen('A') == L'A');
|
assert(f.widen('A') == L'A');
|
||||||
assert(f.widen('\x07') == L'\x07');
|
assert(f.widen('\x07') == L'\x07');
|
||||||
|
@ -29,7 +29,7 @@ int main()
|
|||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::string in(" A\x07.a1\x85");
|
std::string in(" A\x07.a1\x85");
|
||||||
std::vector<wchar_t> v(in.size());
|
std::vector<wchar_t> v(in.size());
|
||||||
|
|
||||||
assert(f.widen(&in[0], in.data() + in.size(), v.data()) == in.data() + in.size());
|
assert(f.widen(&in[0], in.data() + in.size(), v.data()) == in.data() + in.size());
|
||||||
assert(v[0] == L' ');
|
assert(v[0] == L' ');
|
||||||
assert(v[1] == L'A');
|
assert(v[1] == L'A');
|
||||||
@ -47,7 +47,7 @@ int main()
|
|||||||
const F& f = std::use_facet<F>(l);
|
const F& f = std::use_facet<F>(l);
|
||||||
std::string in(" A\x07.a1\x85");
|
std::string in(" A\x07.a1\x85");
|
||||||
std::vector<wchar_t> v(in.size());
|
std::vector<wchar_t> v(in.size());
|
||||||
|
|
||||||
assert(f.widen(&in[0], in.data() + in.size(), v.data()) == in.data() + in.size());
|
assert(f.widen(&in[0], in.data() + in.size(), v.data()) == in.data() + in.size());
|
||||||
assert(v[0] == L' ');
|
assert(v[0] == L' ');
|
||||||
assert(v[1] == L'A');
|
assert(v[1] == L'A');
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class CharT>
|
// template <class CharT>
|
||||||
// class ctype
|
// class ctype
|
||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public ctype_base
|
// public ctype_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef CharT char_type;
|
// typedef CharT char_type;
|
||||||
// };
|
// };
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -52,4 +52,4 @@ operator!=(const input_iterator<T>& x, const input_iterator<U>& y)
|
|||||||
return !(x == y);
|
return !(x == y);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -30,4 +30,4 @@ public:
|
|||||||
{output_iterator tmp(*this); ++(*this); return tmp;}
|
{output_iterator tmp(*this); ++(*this); return tmp;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -30,4 +30,4 @@ public:
|
|||||||
{output_iterator tmp(*this); ++(*this); return tmp;}
|
{output_iterator tmp(*this); ++(*this); return tmp;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
|
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
|
||||||
// class num_put
|
// class num_put
|
||||||
// : public locale::facet
|
// : public locale::facet
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef OutputIterator iter_type;
|
// typedef OutputIterator iter_type;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -60,7 +60,7 @@ int main()
|
|||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -72,7 +72,7 @@ int main()
|
|||||||
const char str[] = "0";
|
const char str[] = "0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -84,7 +84,7 @@ int main()
|
|||||||
const char str[] = "12";
|
const char str[] = "12";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -96,7 +96,7 @@ int main()
|
|||||||
const char str[] = "*12";
|
const char str[] = "*12";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -109,7 +109,7 @@ int main()
|
|||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -121,7 +121,7 @@ int main()
|
|||||||
const char str[] = "true";
|
const char str[] = "true";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -133,7 +133,7 @@ int main()
|
|||||||
const char str[] = "false";
|
const char str[] = "false";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -146,7 +146,7 @@ int main()
|
|||||||
const char str[] = "a";
|
const char str[] = "a";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+1),
|
input_iterator<const char*>(str+1),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -158,7 +158,7 @@ int main()
|
|||||||
const char str[] = "abc";
|
const char str[] = "abc";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+3),
|
input_iterator<const char*>(str+3),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -170,7 +170,7 @@ int main()
|
|||||||
const char str[] = "acc";
|
const char str[] = "acc";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+3),
|
input_iterator<const char*>(str+3),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -183,7 +183,7 @@ int main()
|
|||||||
const char str[] = "a";
|
const char str[] = "a";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+1),
|
input_iterator<const char*>(str+1),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -195,7 +195,7 @@ int main()
|
|||||||
const char str[] = "ab";
|
const char str[] = "ab";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+2),
|
input_iterator<const char*>(str+2),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -207,7 +207,7 @@ int main()
|
|||||||
const char str[] = "abc";
|
const char str[] = "abc";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+3),
|
input_iterator<const char*>(str+3),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
@ -219,7 +219,7 @@ int main()
|
|||||||
const char str[] = "ac";
|
const char str[] = "ac";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
bool b;
|
bool b;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+2),
|
input_iterator<const char*>(str+2),
|
||||||
ios, err, b);
|
ios, err, b);
|
||||||
|
@ -53,7 +53,7 @@ int main()
|
|||||||
assert((ios.flags() & ios.basefield) == ios.dec);
|
assert((ios.flags() & ios.basefield) == ios.dec);
|
||||||
assert(ios.getloc().name() == "C");
|
assert(ios.getloc().name() == "C");
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -64,7 +64,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "-123";
|
const char str[] = "-123";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -75,7 +75,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "123.5";
|
const char str[] = "123.5";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -87,7 +87,7 @@ int main()
|
|||||||
const char str[] = "125e-1";
|
const char str[] = "125e-1";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -99,7 +99,7 @@ int main()
|
|||||||
const char str[] = "0x125p-1";
|
const char str[] = "0x125p-1";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -111,7 +111,7 @@ int main()
|
|||||||
const char str[] = "inf";
|
const char str[] = "inf";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -123,7 +123,7 @@ int main()
|
|||||||
const char str[] = "INF";
|
const char str[] = "INF";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -135,7 +135,7 @@ int main()
|
|||||||
const char str[] = "-inf";
|
const char str[] = "-inf";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -147,7 +147,7 @@ int main()
|
|||||||
const char str[] = "-INF";
|
const char str[] = "-INF";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -159,7 +159,7 @@ int main()
|
|||||||
const char str[] = "nan";
|
const char str[] = "nan";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -171,7 +171,7 @@ int main()
|
|||||||
const char str[] = "NAN";
|
const char str[] = "NAN";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -183,7 +183,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "123_456_78_9;125";
|
const char str[] = "123_456_78_9;125";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -196,7 +196,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "123_456_78_9;125";
|
const char str[] = "123_456_78_9;125";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -218,7 +218,7 @@ int main()
|
|||||||
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
|
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
|
||||||
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_";
|
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -41,7 +41,7 @@ int main()
|
|||||||
assert((ios.flags() & ios.basefield) == ios.dec);
|
assert((ios.flags() & ios.basefield) == ios.dec);
|
||||||
assert(ios.getloc().name() == "C");
|
assert(ios.getloc().name() == "C");
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -52,7 +52,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "-123";
|
const char str[] = "-123";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -63,7 +63,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "123.5";
|
const char str[] = "123.5";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -75,7 +75,7 @@ int main()
|
|||||||
const char str[] = "125e-1";
|
const char str[] = "125e-1";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -87,7 +87,7 @@ int main()
|
|||||||
const char str[] = "0x125p-1";
|
const char str[] = "0x125p-1";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -99,7 +99,7 @@ int main()
|
|||||||
const char str[] = "inf";
|
const char str[] = "inf";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -111,7 +111,7 @@ int main()
|
|||||||
const char str[] = "INF";
|
const char str[] = "INF";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -123,7 +123,7 @@ int main()
|
|||||||
const char str[] = "-inf";
|
const char str[] = "-inf";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -135,7 +135,7 @@ int main()
|
|||||||
const char str[] = "-INF";
|
const char str[] = "-INF";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -147,7 +147,7 @@ int main()
|
|||||||
const char str[] = "nan";
|
const char str[] = "nan";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -159,7 +159,7 @@ int main()
|
|||||||
const char str[] = "NAN";
|
const char str[] = "NAN";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -51,7 +51,7 @@ int main()
|
|||||||
assert((ios.flags() & ios.basefield) == ios.dec);
|
assert((ios.flags() & ios.basefield) == ios.dec);
|
||||||
assert(ios.getloc().name() == "C");
|
assert(ios.getloc().name() == "C");
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -64,7 +64,7 @@ int main()
|
|||||||
assert((ios.flags() & ios.basefield) == ios.dec);
|
assert((ios.flags() & ios.basefield) == ios.dec);
|
||||||
assert(ios.getloc().name() == "C");
|
assert(ios.getloc().name() == "C");
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -76,7 +76,7 @@ int main()
|
|||||||
const char str[] = "123";
|
const char str[] = "123";
|
||||||
oct(ios);
|
oct(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -88,7 +88,7 @@ int main()
|
|||||||
const char str[] = "123";
|
const char str[] = "123";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -100,7 +100,7 @@ int main()
|
|||||||
const char str[] = "0x123";
|
const char str[] = "0x123";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -112,7 +112,7 @@ int main()
|
|||||||
const char str[] = "123";
|
const char str[] = "123";
|
||||||
ios.setf(0, ios.basefield);
|
ios.setf(0, ios.basefield);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -124,7 +124,7 @@ int main()
|
|||||||
const char str[] = "0x123";
|
const char str[] = "0x123";
|
||||||
ios.setf(0, ios.basefield);
|
ios.setf(0, ios.basefield);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -136,7 +136,7 @@ int main()
|
|||||||
const char str[] = "0123";
|
const char str[] = "0123";
|
||||||
ios.setf(0, ios.basefield);
|
ios.setf(0, ios.basefield);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -150,7 +150,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "123";
|
const char str[] = "123";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -162,7 +162,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1";
|
const char str[] = "+1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -174,7 +174,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_";
|
const char str[] = "+1_";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -186,7 +186,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+_1";
|
const char str[] = "+_1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -198,7 +198,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "_+1";
|
const char str[] = "_+1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -210,7 +210,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1__";
|
const char str[] = "+1__";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -222,7 +222,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+_1_";
|
const char str[] = "+_1_";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -234,7 +234,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "_+1_";
|
const char str[] = "_+1_";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -246,7 +246,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+__1";
|
const char str[] = "+__1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -258,7 +258,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "_+_1";
|
const char str[] = "_+_1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -270,7 +270,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "__+1";
|
const char str[] = "__+1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -282,7 +282,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_2";
|
const char str[] = "+1_2";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -294,7 +294,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+12_";
|
const char str[] = "+12_";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -306,7 +306,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+_12";
|
const char str[] = "+_12";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -318,7 +318,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1__2";
|
const char str[] = "+1__2";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -330,7 +330,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+12_3";
|
const char str[] = "+12_3";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -342,7 +342,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_23";
|
const char str[] = "+1_23";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -354,7 +354,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_23_4";
|
const char str[] = "+1_23_4";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -366,7 +366,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+123_4";
|
const char str[] = "+123_4";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -378,7 +378,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+12_34";
|
const char str[] = "+12_34";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -390,7 +390,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+12_34_5";
|
const char str[] = "+12_34_5";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -402,7 +402,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+123_45_6";
|
const char str[] = "+123_45_6";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -414,7 +414,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_23_45_6";
|
const char str[] = "+1_23_45_6";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -426,7 +426,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_234_56_7";
|
const char str[] = "+1_234_56_7";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -438,7 +438,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "+1_234_567_89_0";
|
const char str[] = "+1_234_567_89_0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -450,7 +450,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "-1_234_567_89_0";
|
const char str[] = "-1_234_567_89_0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -462,7 +462,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "1_234_567_89_0";
|
const char str[] = "1_234_567_89_0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -474,7 +474,7 @@ int main()
|
|||||||
v = -1;
|
v = -1;
|
||||||
const char str[] = "1234_567_89_0";
|
const char str[] = "1234_567_89_0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -496,7 +496,7 @@ int main()
|
|||||||
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
|
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
|
||||||
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_";
|
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -41,7 +41,7 @@ int main()
|
|||||||
assert((ios.flags() & ios.basefield) == ios.dec);
|
assert((ios.flags() & ios.basefield) == ios.dec);
|
||||||
assert(ios.getloc().name() == "C");
|
assert(ios.getloc().name() == "C");
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -52,7 +52,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "-123";
|
const char str[] = "-123";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -63,7 +63,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "123.5";
|
const char str[] = "123.5";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -75,7 +75,7 @@ int main()
|
|||||||
const char str[] = "125e-1";
|
const char str[] = "125e-1";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -87,7 +87,7 @@ int main()
|
|||||||
const char str[] = "0x125p-1";
|
const char str[] = "0x125p-1";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -99,7 +99,7 @@ int main()
|
|||||||
const char str[] = "inf";
|
const char str[] = "inf";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -111,7 +111,7 @@ int main()
|
|||||||
const char str[] = "INF";
|
const char str[] = "INF";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -123,7 +123,7 @@ int main()
|
|||||||
const char str[] = "-inf";
|
const char str[] = "-inf";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -135,7 +135,7 @@ int main()
|
|||||||
const char str[] = "-INF";
|
const char str[] = "-INF";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -147,7 +147,7 @@ int main()
|
|||||||
const char str[] = "nan";
|
const char str[] = "nan";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -159,7 +159,7 @@ int main()
|
|||||||
const char str[] = "NAN";
|
const char str[] = "NAN";
|
||||||
hex(ios);
|
hex(ios);
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -49,7 +49,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0";
|
const char str[] = "0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -60,7 +60,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -71,7 +71,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "-1";
|
const char str[] = "-1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -83,7 +83,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0x7FFFFFFFFFFFFFFF";
|
const char str[] = "0x7FFFFFFFFFFFFFFF";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -94,7 +94,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "-0x8000000000000000";
|
const char str[] = "-0x8000000000000000";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -38,7 +38,7 @@ int main()
|
|||||||
const char str[] = "0x0";
|
const char str[] = "0x0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
void* p;
|
void* p;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, p);
|
ios, err, p);
|
||||||
@ -50,7 +50,7 @@ int main()
|
|||||||
const char str[] = "0x73";
|
const char str[] = "0x73";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
void* p;
|
void* p;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, p);
|
ios, err, p);
|
||||||
|
@ -49,7 +49,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0";
|
const char str[] = "0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -60,7 +60,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -72,7 +72,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0xFFFFFFFF";
|
const char str[] = "0xFFFFFFFF";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -49,7 +49,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0";
|
const char str[] = "0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -60,7 +60,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -72,7 +72,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0xFFFFFFFF";
|
const char str[] = "0xFFFFFFFF";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -49,7 +49,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0";
|
const char str[] = "0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -60,7 +60,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -72,7 +72,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0xFFFFFFFFFFFFFFFF";
|
const char str[] = "0xFFFFFFFFFFFFFFFF";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -49,7 +49,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0";
|
const char str[] = "0";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -60,7 +60,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "1";
|
const char str[] = "1";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
@ -72,7 +72,7 @@ int main()
|
|||||||
{
|
{
|
||||||
const char str[] = "0xFFFF";
|
const char str[] = "0xFFFF";
|
||||||
std::ios_base::iostate err = ios.goodbit;
|
std::ios_base::iostate err = ios.goodbit;
|
||||||
input_iterator<const char*> iter =
|
input_iterator<const char*> iter =
|
||||||
f.get(input_iterator<const char*>(str),
|
f.get(input_iterator<const char*>(str),
|
||||||
input_iterator<const char*>(str+sizeof(str)),
|
input_iterator<const char*>(str+sizeof(str)),
|
||||||
ios, err, v);
|
ios, err, v);
|
||||||
|
@ -248,4 +248,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
|
|||||||
return x.base() - y.base();
|
return x.base() - y.base();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
|
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
|
||||||
// class num_get
|
// class num_get
|
||||||
// : public locale::facet
|
// : public locale::facet
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef InputIterator iter_type;
|
// typedef InputIterator iter_type;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_get_byname<charT, InputIterator>
|
// class time_get_byname<charT, InputIterator>
|
||||||
|
|
||||||
// iter_type get(iter_type s, iter_type end, ios_base& f,
|
// iter_type get(iter_type s, iter_type end, ios_base& f,
|
||||||
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
|
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_get_byname<charT, InputIterator>
|
// class time_get_byname<charT, InputIterator>
|
||||||
|
|
||||||
// iter_type get(iter_type s, iter_type end, ios_base& f,
|
// iter_type get(iter_type s, iter_type end, ios_base& f,
|
||||||
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
|
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_get_byname<charT, InputIterator>
|
// class time_get_byname<charT, InputIterator>
|
||||||
|
|
||||||
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
|
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
|
||||||
// ios_base::iostate& err, tm* t) const;
|
// ios_base::iostate& err, tm* t) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_get_byname<charT, InputIterator>
|
// class time_get_byname<charT, InputIterator>
|
||||||
|
|
||||||
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
|
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
|
||||||
// ios_base::iostate& err, tm* t) const;
|
// ios_base::iostate& err, tm* t) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -52,4 +52,4 @@ operator!=(const input_iterator<T>& x, const input_iterator<U>& y)
|
|||||||
return !(x == y);
|
return !(x == y);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_get<charT, InputIterator>
|
// class time_get<charT, InputIterator>
|
||||||
|
|
||||||
// iter_type get(iter_type s, iter_type end, ios_base& f,
|
// iter_type get(iter_type s, iter_type end, ios_base& f,
|
||||||
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
|
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_get<charT, InputIterator>
|
// class time_get<charT, InputIterator>
|
||||||
|
|
||||||
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
|
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
|
||||||
// ios_base::iostate& err, tm* t) const;
|
// ios_base::iostate& err, tm* t) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -52,4 +52,4 @@ operator!=(const input_iterator<T>& x, const input_iterator<U>& y)
|
|||||||
return !(x == y);
|
return !(x == y);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
// public:
|
// public:
|
||||||
// enum dateorder {no_order, dmy, mdy, ymd, ydm};
|
// enum dateorder {no_order, dmy, mdy, ymd, ydm};
|
||||||
// };
|
// };
|
||||||
//
|
//
|
||||||
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
|
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
|
||||||
// class time_get
|
// class time_get
|
||||||
// : public locale::facet,
|
// : public locale::facet,
|
||||||
// public time_base
|
// public time_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef InputIterator iter_type;
|
// typedef InputIterator iter_type;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -30,4 +30,4 @@ public:
|
|||||||
{output_iterator tmp(*this); ++(*this); return tmp;}
|
{output_iterator tmp(*this); ++(*this); return tmp;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// public:
|
// public:
|
||||||
// explicit time_put_byname(const char* nm, size_t refs = 0);
|
// explicit time_put_byname(const char* nm, size_t refs = 0);
|
||||||
// explicit time_put_byname(const string& nm, size_t refs = 0);
|
// explicit time_put_byname(const string& nm, size_t refs = 0);
|
||||||
//
|
//
|
||||||
// protected:
|
// protected:
|
||||||
// ~time_put_byname();
|
// ~time_put_byname();
|
||||||
// };
|
// };
|
||||||
|
@ -30,4 +30,4 @@ public:
|
|||||||
{output_iterator tmp(*this); ++(*this); return tmp;}
|
{output_iterator tmp(*this); ++(*this); return tmp;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_put<charT, OutputIterator>
|
// class time_put<charT, OutputIterator>
|
||||||
|
|
||||||
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
||||||
// const charT* pattern, const charT* pat_end) const;
|
// const charT* pattern, const charT* pat_end) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class time_put<charT, OutputIterator>
|
// class time_put<charT, OutputIterator>
|
||||||
|
|
||||||
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
||||||
// char format, char modifier = 0) const;
|
// char format, char modifier = 0) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
|
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
|
||||||
// class time_put
|
// class time_put
|
||||||
// : public locale::facet
|
// : public locale::facet
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef OutputIterator iter_type;
|
// typedef OutputIterator iter_type;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT>
|
// template <class charT>
|
||||||
// class numpunct
|
// class numpunct
|
||||||
// : public locale::facet
|
// : public locale::facet
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef basic_string<charT> string_type;
|
// typedef basic_string<charT> string_type;
|
||||||
// static locale::id id;
|
// static locale::id id;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
// // unspecified
|
// // unspecified
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// int length(stateT& state, const externT* from, const externT* from_end,
|
// int length(stateT& state, const externT* from, const externT* from_end,
|
||||||
// size_t max) const;
|
// size_t max) const;
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
// result
|
// result
|
||||||
// unshift(stateT& state,
|
// unshift(stateT& state,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
// // unspecified
|
// // unspecified
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// int length(stateT& state, const externT* from, const externT* from_end,
|
// int length(stateT& state, const externT* from, const externT* from_end,
|
||||||
// size_t max) const;
|
// size_t max) const;
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
// result
|
// result
|
||||||
// unshift(stateT& state,
|
// unshift(stateT& state,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
// // unspecified
|
// // unspecified
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// int length(stateT& state, const externT* from, const externT* from_end,
|
// int length(stateT& state, const externT* from, const externT* from_end,
|
||||||
// size_t max) const;
|
// size_t max) const;
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
// result
|
// result
|
||||||
// unshift(stateT& state,
|
// unshift(stateT& state,
|
||||||
// externT* to, externT* to_end, externT*& to_next) const;
|
// externT* to, externT* to_end, externT*& to_next) const;
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
@ -97,4 +97,4 @@ int main()
|
|||||||
assert(f.get() == -1);
|
assert(f.get() == -1);
|
||||||
}
|
}
|
||||||
std::remove("overflow.dat");
|
std::remove("overflow.dat");
|
||||||
}
|
}
|
||||||
|
@ -56,4 +56,4 @@ int main()
|
|||||||
assert(f.sbumpc() == L'2');
|
assert(f.sbumpc() == L'2');
|
||||||
assert(f.sgetc() == L'3');
|
assert(f.sgetc() == L'3');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
// wbuffer_convert<Codecvt, Elem, Tr>
|
// wbuffer_convert<Codecvt, Elem, Tr>
|
||||||
|
|
||||||
// pos_type seekoff(off_type off, ios_base::seekdir way,
|
// pos_type seekoff(off_type off, ios_base::seekdir way,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
// pos_type seekpos(pos_type sp,
|
// pos_type seekpos(pos_type sp,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
|
|
||||||
// This test is not entirely portable
|
// This test is not entirely portable
|
||||||
|
@ -81,4 +81,4 @@ int main()
|
|||||||
assert(f.sbumpc() == 0x4E53);
|
assert(f.sbumpc() == 0x4E53);
|
||||||
assert(f.sbumpc() == -1);
|
assert(f.sbumpc() == -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// template <class charT, class Traits, class Allocator>
|
// template <class charT, class Traits, class Allocator>
|
||||||
// bool operator()(const basic_string<charT,Traits,Allocator>& s1,
|
// bool operator()(const basic_string<charT,Traits,Allocator>& s1,
|
||||||
// const basic_string<charT,Traits,Allocator>& s2) const;
|
// const basic_string<charT,Traits,Allocator>& s2) const;
|
||||||
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
// <locale>
|
// <locale>
|
||||||
|
|
||||||
// class locale::facet
|
// class locale::facet
|
||||||
// {
|
// {
|
||||||
// protected:
|
// protected:
|
||||||
// explicit facet(size_t refs = 0);
|
// explicit facet(size_t refs = 0);
|
||||||
// virtual ~facet();
|
// virtual ~facet();
|
||||||
// facet(const facet&) = delete;
|
// facet(const facet&) = delete;
|
||||||
// void operator=(const facet&) = delete;
|
// void operator=(const facet&) = delete;
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// This test isn't portable
|
// This test isn't portable
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
// class locale::id
|
// class locale::id
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// id();
|
// id();
|
||||||
// void operator=(const id&) = delete;
|
// void operator=(const id&) = delete;
|
||||||
// id(const id&) = delete;
|
// id(const id&) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user