Lines Matching full:c
3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
212 … Helper function to enable support for common swap implementation pattern based on \c std::swap:
673 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
703 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
749 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
785 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
825 … \note Erasing with an empty pointer \c Pointer(""), i.e. the root, always fail and return false.
904 \param c The character (code unit) to be tested.
906 bool NeedPercentEncode(Ch c) const { in NeedPercentEncode() argument
907 …return !((c >= '0' && c <= '9') || (c >= 'A' && c <='Z') || (c >= 'a' && c <= 'z') || c == '-' || … in NeedPercentEncode()
957 Ch c = source[i]; in Parse() local
960 if (c == '%') { in Parse()
971 c = *name; in Parse()
979 else if (NeedPercentEncode(c)) { in Parse()
988 if (c == '~') { in Parse()
990 c = source[i]; in Parse()
991 if (c == '0') c = '~'; in Parse()
992 else if (c == '1') c = '/'; in Parse()
1006 if (c < '0' || c > '9') in Parse()
1009 *name++ = c; in Parse()
1066 Ch c = t->name[j]; in Stringify() local
1067 if (c == '~') { in Stringify()
1071 else if (c == '/') { in Stringify()
1075 else if (uriFragment && NeedPercentEncode(c)) { in Stringify()
1084 os.Put(c); in Stringify()
1113 Ch c = 0; in Take() local
1115 c = static_cast<Ch>(c << 4); in Take()
1117 if (h >= '0' && h <= '9') c = static_cast<Ch>(c + h - '0'); in Take()
1118 else if (h >= 'A' && h <= 'F') c = static_cast<Ch>(c + h - 'A' + 10); in Take()
1119 else if (h >= 'a' && h <= 'f') c = static_cast<Ch>(c + h - 'a' + 10); in Take()
1126 return c; in Take()
1144 void Put(char c) { // UTF-8 must be byte in Put() argument
1145 unsigned char u = static_cast<unsigned char>(c); in Put()
1146 …hexDigits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; in Put()