/external/libutf/ |
D | utf.h | 6 typedef signed int Rune; /* Code-point values in Unicode 4.0 are 21 bits wide.*/ typedef 36 int runetochar(char* s, const Rune* r); 49 int chartorune(Rune* r, const char* s); 59 int charntorune(Rune* r, const char* s, int n); 66 int isvalidcharntorune(const char* str, int n, Rune* r, int* consumed); 70 int runelen(Rune r); 76 int runenlen(const Rune* r, int n); 111 const char* utfrune(const char* s, Rune r); 119 const char* utfrrune(const char* s, Rune r); 149 Rune* runestrcat(Rune* s1, const Rune* s2); [all …]
|
D | runetypebody.h | 3 static Rune __isspacer[] = { 18 isspacerune(Rune c) in isspacerune() 20 Rune *p; in isspacerune() 28 static Rune __isdigitr[] = { 74 isdigitrune(Rune c) in isdigitrune() 76 Rune *p; in isdigitrune() 84 static Rune __isalphar[] = { 470 static Rune __isalphas[] = { 577 isalpharune(Rune c) in isalpharune() 579 Rune *p; in isalpharune() [all …]
|
D | runetype.c | 18 Rune* 19 rbsearch(Rune c, Rune *t, int n, int ne) in rbsearch() 21 Rune *p; in rbsearch() 48 static Rune __isideographicr[] = { 60 isideographicrune(Rune c) in isideographicrune() 62 Rune *p; in isideographicrune()
|
D | runestrdup.c | 20 Rune* 21 runestrdup(const Rune *s) in runestrdup() 23 Rune *ns; in runestrdup() 25 ns = (Rune*)malloc(sizeof(Rune)*(runestrlen(s) + 1)); in runestrdup()
|
D | runestrchr.c | 20 Rune* 21 runestrchr(const Rune *s, Rune c) in runestrchr() 23 Rune c0 = c; in runestrchr() 24 Rune c1; in runestrchr()
|
D | runestrncat.c | 19 Rune* 20 runestrncat(Rune *s1, const Rune *s2, long n) in runestrncat() 22 Rune *os1; in runestrncat() 25 s1 = (Rune*)runestrchr(s1, 0); in runestrncat()
|
D | runestrcat.c | 19 Rune* 20 runestrcat(Rune *s1, const Rune *s2) in runestrcat() 23 runestrcpy((Rune*)runestrchr(s1, 0), s2); in runestrcat()
|
D | runestrcpy.c | 19 Rune* 20 runestrcpy(Rune *s1, const Rune *s2) in runestrcpy() 22 Rune *os1; in runestrcpy()
|
D | runestrecpy.c | 19 Rune* 20 runestrecpy(Rune *s1, Rune *es1, const Rune *s2) in runestrecpy()
|
D | runestrrchr.c | 20 Rune* 21 runestrrchr(const Rune *s, Rune c) in runestrrchr() 23 const Rune *r; in runestrrchr()
|
D | runestrncpy.c | 19 Rune* 20 runestrncpy(Rune *s1, const Rune *s2, long n) in runestrncpy() 23 Rune *os1; in runestrncpy()
|
D | runestrstr.c | 24 Rune* 25 runestrstr(const Rune *s1, const Rune *s2) in runestrstr() 27 const Rune *p, *pa, *pb; in runestrstr()
|
D | runestrcmp.c | 20 runestrcmp(const Rune *s1, const Rune *s2) in runestrcmp() 22 Rune c1, c2; in runestrcmp()
|
D | runestrncmp.c | 20 runestrncmp(const Rune *s1, const Rune *s2, long n) in runestrncmp() 22 Rune c1, c2; in runestrncmp()
|
D | rune.c | 66 charntorune(Rune *rune, const char *str, int length) in charntorune() 169 chartorune(Rune *rune, const char *str) in chartorune() 247 isvalidcharntorune(const char* str, int length, Rune* rune, int* consumed) { in isvalidcharntorune() 253 runetochar(char *str, const Rune *rune) in runetochar() 310 runelen(Rune rune) in runelen() 318 runenlen(const Rune *r, int nrune) in runenlen()
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | regexp.h | 228 Rune lo; 229 Rune hi; 255 bool Contains(Rune r); 336 Rune rune() { DCHECK_EQ(op_, kRegexpLiteral); return rune_; } in rune() 340 Rune* runes() { DCHECK_EQ(op_, kRegexpLiteralString); return runes_; } in runes() 401 static Regexp* NewLiteral(Rune rune, ParseFlags flags); 403 static Regexp* LiteralString(Rune* runes, int nrunes, ParseFlags flags); 486 static Rune* LeadingString(Regexp* re, int* nrune, ParseFlags* flags); 520 void AddRuneToString(Rune r); 578 Rune* runes_; [all …]
|
D | unicode_casefold.h | 57 Rune lo; 58 Rune hi; 71 extern const CaseFold* LookupCaseFold(const CaseFold*, int, Rune rune); 74 extern Rune ApplyFold(const CaseFold *f, Rune r);
|
D | regexp.cc | 171 void Regexp::AddRuneToString(Rune r) { in AddRuneToString() 175 runes_ = new Rune[8]; in AddRuneToString() 178 Rune *old = runes_; in AddRuneToString() 179 runes_ = new Rune[nrunes_ * 2]; in AddRuneToString() 312 Regexp* Regexp::NewLiteral(Rune rune, ParseFlags flags) { in NewLiteral() 318 Regexp* Regexp::LiteralString(Rune* runes, int nrunes, ParseFlags flags) { in LiteralString() 658 void ConvertRunesToBytes(bool latin1, Rune* runes, int nrunes, in ConvertRunesToBytes() 709 Rune* runes = re->op_ == kRegexpLiteral ? &re->rune_ : re->runes_; in RequiredPrefix() 731 Rune* runes = re->op_ == kRegexpLiteral ? &re->rune_ : re->runes_; in RequiredPrefixForAccel() 751 bool CharClassBuilder::AddRange(Rune lo, Rune hi) { in AddRange() [all …]
|
D | parse.cc | 90 bool PushLiteral(Rune r); 150 bool ParseCCCharacter(StringPiece* s, Rune *rp, 248 Rune r = re->ccb_->begin()->lo; in PushRegexp() 253 Rune r = re->ccb_->begin()->lo; in PushRegexp() 272 const CaseFold* LookupCaseFold(const CaseFold *f, int n, Rune r) { in LookupCaseFold() 300 Rune ApplyFold(const CaseFold *f, Rune r) { in ApplyFold() 335 Rune CycleFoldRune(Rune r) { in CycleFoldRune() 345 static void AddFoldedRange(CharClassBuilder* cc, Rune lo, Rune hi, int depth) { in AddFoldedRange() 369 Rune lo1 = lo; in AddFoldedRange() 370 Rune hi1 = std::min<Rune>(hi, f->hi); in AddFoldedRange() [all …]
|
D | tostring.cc | 31 static void AppendCCRange(std::string* t, Rune lo, Rune hi); 129 static void AppendLiteral(std::string *t, Rune r, bool foldcase) { in AppendLiteral() 306 static void AppendCCChar(std::string* t, Rune r) { in AppendCCChar() 341 static void AppendCCRange(std::string* t, Rune lo, Rune hi) { in AppendCCRange()
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/util/ |
D | utf.h | 25 typedef signed int Rune; /* Code-point values in Unicode 4.0 are 21 bits wide.*/ typedef 36 int runetochar(char* s, const Rune* r); 37 int chartorune(Rune* r, const char* s); 40 char* utfrune(const char*, Rune);
|
D | rune.cc | 51 chartorune(Rune *rune, const char *str) in chartorune() 127 runetochar(char *str, const Rune *rune) in runetochar() 184 runelen(Rune rune) in runelen() 216 Rune rune; in utflen() 233 utfrune(const char *s, Rune c) in utfrune() 236 Rune r; in utfrune()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | JSON.cpp | 407 static void encodeUtf8(uint32_t Rune, std::string &Out) { in encodeUtf8() argument 408 if (Rune < 0x80) { in encodeUtf8() 409 Out.push_back(Rune & 0x7F); in encodeUtf8() 410 } else if (Rune < 0x800) { in encodeUtf8() 411 uint8_t FirstByte = 0xC0 | ((Rune & 0x7C0) >> 6); in encodeUtf8() 412 uint8_t SecondByte = 0x80 | (Rune & 0x3F); in encodeUtf8() 415 } else if (Rune < 0x10000) { in encodeUtf8() 416 uint8_t FirstByte = 0xE0 | ((Rune & 0xF000) >> 12); in encodeUtf8() 417 uint8_t SecondByte = 0x80 | ((Rune & 0xFC0) >> 6); in encodeUtf8() 418 uint8_t ThirdByte = 0x80 | (Rune & 0x3F); in encodeUtf8() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/ |
D | dump.cc | 74 Rune r = re->rune(); in DumpRegexpAppending() 80 Rune r = re->runes()[i]; in DumpRegexpAppending() 98 Rune r = re->rune(); in DumpRegexpAppending() 106 Rune r = re->runes()[i]; in DumpRegexpAppending()
|
/external/llvm-project/llvm/lib/Support/ |
D | JSON.cpp | 564 static void encodeUtf8(uint32_t Rune, std::string &Out) { in encodeUtf8() argument 565 if (Rune < 0x80) { in encodeUtf8() 566 Out.push_back(Rune & 0x7F); in encodeUtf8() 567 } else if (Rune < 0x800) { in encodeUtf8() 568 uint8_t FirstByte = 0xC0 | ((Rune & 0x7C0) >> 6); in encodeUtf8() 569 uint8_t SecondByte = 0x80 | (Rune & 0x3F); in encodeUtf8() 572 } else if (Rune < 0x10000) { in encodeUtf8() 573 uint8_t FirstByte = 0xE0 | ((Rune & 0xF000) >> 12); in encodeUtf8() 574 uint8_t SecondByte = 0x80 | ((Rune & 0xFC0) >> 6); in encodeUtf8() 575 uint8_t ThirdByte = 0x80 | (Rune & 0x3F); in encodeUtf8() [all …]
|