| 2398 | static bool is_control(char_t c) { switch (traits::to_wchar(c)) { case L'\n': case L'\r': return true; } return false; } |
| 2399 | |
| 2400 | static typename string_t::size_type next_token(const string_t& str, char_t delim, typename string_t::const_pointer off) { |
| 2401 | typename string_t::const_pointer p = off, end = str.c_str() + str.length(); |
| 2402 | for (; p != end; ++p) if (*p == delim) break; |
| 2403 | return p - off; |
| 2404 | } |
| 2405 | |
| 2406 | static void append_percent_encoded(string_t& s1, const string_t& s2) { |
| 2407 | const wchar_t safe_chars[] = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.~ !*'();/?:@&=+$,#"; |