diff options
Diffstat (limited to '3rdParty/Boost/src/boost/token_functions.hpp')
| -rw-r--r-- | 3rdParty/Boost/src/boost/token_functions.hpp | 47 |
1 files changed, 16 insertions, 31 deletions
diff --git a/3rdParty/Boost/src/boost/token_functions.hpp b/3rdParty/Boost/src/boost/token_functions.hpp index 4d1a1df..33b37cd 100644 --- a/3rdParty/Boost/src/boost/token_functions.hpp +++ b/3rdParty/Boost/src/boost/token_functions.hpp @@ -1,5 +1,5 @@ // Boost token_functions.hpp ------------------------------------------------// -// Copyright John R. Bandela 2001. +// Copyright John R. Bandela 2001. // Distributed under the Boost Software License, Version 1.0. (See @@ -78,10 +78,10 @@ namespace boost{ //=========================================================================== // The escaped_list_separator class. Which is a model of TokenizerFunction - // An escaped list is a super-set of what is commonly known as a comma - // separated value (csv) list.It is separated into fields by a comma or + // An escaped list is a super-set of what is commonly known as a comma + // separated value (csv) list.It is separated into fields by a comma or // other character. If the delimiting character is inside quotes, then it is // counted as a regular character.To allow for embedded quotes in a field, - // there can be escape sequences using the \ much like C. - // The role of the comma, the quotation mark, and the escape + // there can be escape sequences using the \ much like C. + // The role of the comma, the quotation mark, and the escape // character (backslash \), can be assigned to other characters. @@ -182,5 +182,5 @@ namespace boost{ // The last character was a c, that means there is // 1 more blank field - last_ = true; + last_ = true; return true; } @@ -210,5 +210,5 @@ namespace boost{ // implementations, argument types are not a problem since both forms of character classifiers // expect an int. - + #if !defined(BOOST_NO_CWCTYPE) template<typename traits, int N> @@ -239,5 +239,5 @@ namespace boost{ #endif - + // In case there is no cwctype header, we implement the checks manually. // We make use of the fact that the tested categories should fit in ASCII. @@ -279,20 +279,5 @@ namespace boost{ template<class Iterator, class Token> static void assign(Iterator b, Iterator e, Token &t) { - -#if BOOST_WORKAROUND(BOOST_MSVC, < 1300) &&\ - BOOST_WORKAROUND(__SGI_STL_PORT, < 0x500) &&\ - defined(_STLP_DEBUG) &&\ - (defined(_STLP_USE_DYNAMIC_LIB) || defined(_DLL)) - // Problem with string::assign for msvc-stlport in debug mode: the - // linker tries to import the templatized version of this memfun, - // which is obviously not exported. - // See http://www.stlport.com/dcforum/DCForumID6/1763.html for details. - - t = Token(); - while(b != e) t += *b++; -#else t.assign(b, e); -#endif - } @@ -310,6 +295,6 @@ namespace boost{ struct assign_or_plus_equal<std::input_iterator_tag> { template<class Iterator, class Token> - static void assign(Iterator b, Iterator e, Token &t) { } - template<class Token, class Value> + static void assign(Iterator , Iterator , Token &) { } + template<class Token, class Value> static void plus_equal(Token &t, const Value &v) { t += v; @@ -445,5 +430,5 @@ namespace boost{ typedef std::basic_string<Char,Tr> string_type; public: - explicit + explicit char_separator(const Char* dropped_delims, const Char* kept_delims = 0, @@ -512,5 +497,5 @@ namespace boost{ assigner::assign(start,next,tok); return true; - } + } else return false; @@ -525,8 +510,8 @@ namespace boost{ m_output_done = false; } - } + } else if (m_output_done == false && is_dropped(*next)) { m_output_done = true; - } + } else { if (is_dropped(*next)) @@ -619,5 +604,5 @@ namespace boost{ public: - explicit char_delimiters_separator(bool return_delims = false, + explicit char_delimiters_separator(bool return_delims = false, const Char* returnable = 0, const Char* nonreturnable = 0) @@ -637,5 +622,5 @@ namespace boost{ // skip past all nonreturnable delims // skip past the returnable only if we are not returning delims - for (;next!=end && ( is_nonret(*next) || (is_ret(*next) + for (;next!=end && ( is_nonret(*next) || (is_ret(*next) && !return_delims_ ) );++next) { } |
Swift