MCPcopy Create free account
hub / github.com/couchbase/fleece / next_token

Method next_token

Fleece/Support/diff_match_patch.hh:2400–2404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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-_.~ !*'();/?:@&=+$,#";

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected