| /llvm-project-15.0.7/flang/include/flang/Parser/ |
| H A D | characters.h | 32 return ch >= 'A' && ch <= 'Z'; in IsUpperCaseLetter() 36 return ch >= 'a' && ch <= 'z'; in IsLowerCaseLetter() 46 return (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || in IsHexadecimalDigit() 47 (ch >= 'a' && ch <= 'f'); in IsHexadecimalDigit() 53 return IsLetter(ch) || ch == '_' || ch == '@' || ch == '$'; in IsLegalIdentifierStart() 61 return IsUpperCaseLetter(ch) ? ch - 'A' + 'a' : ch; in ToLowerCaseLetter() 65 return IsUpperCaseLetter(ch) ? ch - 'A' + 'a' : ch; in ToLowerCaseLetter() 71 ch = ToLowerCaseLetter(ch); in ToLowerCaseLetters() 77 return IsLowerCaseLetter(ch) ? ch - 'a' + 'A' : ch; in ToUpperCaseLetter() 81 return IsLowerCaseLetter(ch) ? ch - 'a' + 'A' : ch; in ToUpperCaseLetter() [all …]
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | format-implementation.h | 40 if (ch != '-' && ch != '+' && (ch < '0' || ch > '9')) { in GetIntField() 55 while (ch >= '0' && ch <= '9') { in GetIntField() 190 while (ch == ',' || ch == ':') { in CueUpNextDataEdit() 198 if (ch == '-' || ch == '+' || (ch >= '0' && ch <= '9')) { in CueUpNextDataEdit() 218 ch = Capitalize(ch); in CueUpNextDataEdit() 313 } else if (ch >= 'A' && ch <= 'Z') { in CueUpNextDataEdit() 320 ch == 'D' || ch == 'E' || ch == 'R' || ch == 'S' || ch == 'T') { in CueUpNextDataEdit() 330 (ch == 'A' || ch == 'I' || ch == 'B' || ch == 'E' || ch == 'D' || in CueUpNextDataEdit() 331 ch == 'O' || ch == 'Z' || ch == 'F' || ch == 'G' || in CueUpNextDataEdit() 431 if (ch >= '0' && ch <= '9') { in GetNextDataEdit() [all …]
|
| H A D | namelist.cpp | 75 return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || ch == '_' || in IsLegalIdStart() 76 ch == '@' || ch == '$'; in IsLegalIdStart() 80 return IsLegalIdStart(ch) || (ch >= '0' && ch <= '9'); in IsLegalIdChar() 84 return static_cast<char>(ch >= 'A' && ch <= 'Z' ? ch - 'A' + 'a' : ch); in NormalizeIdChar() 119 while (ch && *ch >= '0' && *ch <= '9') { in GetSubscriptValue() 184 if (ch && *ch == ':') { in HandleSubscripts() 202 if (ch && *ch == ':') { in HandleSubscripts() 225 if (ch && *ch == ')') { in HandleSubscripts() 266 if (ch && ch == ':') { in HandleSubstring() 278 if (ch && *ch == ')') { in HandleSubstring() [all …]
|
| H A D | edit-input.cpp | 35 if (ch == ' ' || ch == '\t') { in EditBOZInput() 38 if (ch >= '0' && ch <= '1') { in EditBOZInput() 39 } else if (LOG2_BASE >= 3 && ch >= '2' && ch <= '7') { in EditBOZInput() 71 if (ch >= '0' && ch <= '9') { in EditBOZInput() 73 } else if (ch >= 'A' && ch <= 'F') { in EditBOZInput() 75 } else if (ch >= 'a' && ch <= 'f') { in EditBOZInput() 148 if (ch == ' ' || ch == '\t') { in EditIntegerInput() 156 if (ch >= '0' && ch <= '9') { in EditIntegerInput() 258 if (ch == ' ' || ch == '\t') { in ScanRealInput() 267 } else if (ch >= '0' && ch <= '9') { in ScanRealInput() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | ConvertUTF.cpp | 151 UTF32 ch; in ConvertUTF32toUTF16() local 204 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) { in ConvertUTF16toUTF32() 254 UTF32 ch; in ConvertUTF16toUTF8() local 574 case 3: ch += *source++; ch <<= 6; in ConvertUTF8toUTF16() 575 case 2: ch += *source++; ch <<= 6; in ConvertUTF8toUTF16() 576 case 1: ch += *source++; ch <<= 6; in ConvertUTF8toUTF16() 676 case 5: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl() 677 case 4: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl() 678 case 3: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl() 679 case 2: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl() [all …]
|
| /llvm-project-15.0.7/libc/src/__support/ |
| H A D | ctype_utils.h | 21 static constexpr bool isalpha(unsigned ch) { return (ch | 32) - 'a' < 26; } in isalpha() argument 23 static constexpr bool isdigit(unsigned ch) { return (ch - '0') < 10; } in isdigit() argument 25 static constexpr bool isalnum(unsigned ch) { in isalnum() argument 26 return isalpha(ch) || isdigit(ch); in isalnum() 29 static constexpr bool isgraph(unsigned ch) { return 0x20 < ch && ch < 0x7f; } in isgraph() argument 31 static constexpr bool islower(unsigned ch) { return (ch - 'a') < 26; } in islower() argument 33 static constexpr bool isupper(unsigned ch) { return (ch - 'A') < 26; } in isupper() argument 35 static constexpr bool isspace(unsigned ch) { in isspace() argument 36 return ch == ' ' || (ch - '\t') < 5; in isspace()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | vis.cpp | 15 int ch = toascii(0x1); in test_vis() local 22 int ch = toascii(0x2); in test_nvis() local 72 int ch = toascii(0x3); in test_svis() local 79 int ch = toascii(0x2); in test_snvis() local 122 int ch = toascii(0x1); in test_unvis() local 123 vis(visout, ch, VIS_SAFE, 0); in test_unvis() 150 int ch = toascii(0x2); in test_strunvis() local 151 vis(visout, ch, VIS_SAFE, 0); in test_strunvis() 163 int ch = toascii(0x3); in test_strnunvis() local 176 int ch = toascii(0x4); in test_strunvisx() local [all …]
|
| /llvm-project-15.0.7/lldb/test/API/python_api/frame/ |
| H A D | main.c | 9 int a(int val, char ch) in a() argument 12 char my_ch = ch; in a() 13 printf("a(val=%d, ch='%c')\n", val, ch); in a() 15 return b(val+1, ch+1); in a() 17 return c(val+1, ch+1); in a() 22 int b(int val, char ch) in b() argument 25 char my_ch = ch; in b() 27 return c(val+1, ch+1); in b() 30 int c(int val, char ch) in c() argument 33 char my_ch = ch; in c() [all …]
|
| /llvm-project-15.0.7/libc/test/src/ctype/ |
| H A D | isxdigit_test.cpp | 13 for (int ch = 0; ch < 255; ++ch) { in TEST() local 14 if (('0' <= ch && ch <= '9') || ('a' <= ch && ch <= 'f') || in TEST() 15 ('A' <= ch && ch <= 'F')) in TEST() 16 EXPECT_NE(__llvm_libc::isxdigit(ch), 0); in TEST() 18 EXPECT_EQ(__llvm_libc::isxdigit(ch), 0); in TEST()
|
| H A D | isalpha_test.cpp | 16 for (int ch = 0; ch < 255; ++ch) { in TEST() local 17 if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')) in TEST() 18 EXPECT_NE(__llvm_libc::isalpha(ch), 0); in TEST() 20 EXPECT_EQ(__llvm_libc::isalpha(ch), 0); in TEST()
|
| H A D | tolower_test.cpp | 13 for (int ch = 0; ch < 255; ++ch) { in TEST() local 15 if ('A' <= ch && ch <= 'Z') in TEST() 16 EXPECT_EQ(__llvm_libc::tolower(ch), ch + 32); in TEST() 18 EXPECT_EQ(__llvm_libc::tolower(ch), ch); in TEST()
|
| H A D | toupper_test.cpp | 13 for (int ch = 0; ch < 255; ++ch) { in TEST() local 15 if ('a' <= ch && ch <= 'z') in TEST() 16 EXPECT_EQ(__llvm_libc::toupper(ch), ch - 32); in TEST() 18 EXPECT_EQ(__llvm_libc::toupper(ch), ch); in TEST()
|
| H A D | toascii_test.cpp | 18 for (int ch = 0; ch < 255; ++ch) { in TEST() local 19 if (ch <= 0x7f) in TEST() 20 EXPECT_EQ(__llvm_libc::toascii(ch), ch); in TEST() 22 EXPECT_EQ(__llvm_libc::toascii(ch), ch & 0x7f); in TEST()
|
| H A D | iscntrl_test.cpp | 15 for (int ch = 0; ch < 255; ++ch) { in TEST() local 16 if ((0 <= ch && ch <= 0x1f /*US*/) || ch == 0x7f /*DEL*/) in TEST() 17 EXPECT_NE(__llvm_libc::iscntrl(ch), 0); in TEST() 19 EXPECT_EQ(__llvm_libc::iscntrl(ch), 0); in TEST()
|
| H A D | isspace_test.cpp | 22 for (int ch = 0; ch < 255; ++ch) { in TEST() local 23 if (ch == 0x20 || (0x09 <= ch && ch <= 0x0d)) in TEST() 24 EXPECT_NE(__llvm_libc::isspace(ch), 0); in TEST() 26 EXPECT_EQ(__llvm_libc::isspace(ch), 0); in TEST()
|
| H A D | isdigit_test.cpp | 16 for (int ch = 0; ch < 255; ++ch) { in TEST() local 17 if ('0' <= ch && ch <= '9') in TEST() 18 EXPECT_NE(__llvm_libc::isdigit(ch), 0); in TEST() 20 EXPECT_EQ(__llvm_libc::isdigit(ch), 0); in TEST()
|
| H A D | isgraph_test.cpp | 15 for (int ch = 0; ch < 255; ++ch) { in TEST() local 16 if ('!' <= ch && ch <= '~') // A-Z, a-z, 0-9, punctuation. in TEST() 17 EXPECT_NE(__llvm_libc::isgraph(ch), 0); in TEST() 19 EXPECT_EQ(__llvm_libc::isgraph(ch), 0); in TEST()
|
| H A D | isblank_test.cpp | 15 for (int ch = 0; ch < 255; ++ch) { in TEST() local 16 if (ch == ' ' || ch == '\t') in TEST() 17 EXPECT_NE(__llvm_libc::isblank(ch), 0); in TEST() 19 EXPECT_EQ(__llvm_libc::isblank(ch), 0); in TEST()
|
| H A D | islower_test.cpp | 15 for (int ch = 0; ch < 255; ++ch) { in TEST() local 16 if ('a' <= ch && ch <= 'z') in TEST() 17 EXPECT_NE(__llvm_libc::islower(ch), 0); in TEST() 19 EXPECT_EQ(__llvm_libc::islower(ch), 0); in TEST()
|
| H A D | isupper_test.cpp | 15 for (int ch = 0; ch < 255; ++ch) { in TEST() local 16 if ('A' <= ch && ch <= 'Z') in TEST() 17 EXPECT_NE(__llvm_libc::isupper(ch), 0); in TEST() 19 EXPECT_EQ(__llvm_libc::isupper(ch), 0); in TEST()
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | characters.cpp | 40 const auto emit{[&](char ch) { result += ch; }}; in QuoteCharacterLiteralHelper() 160 char32_t ch{*p}; in DecodeRawCharacter() local 163 } else if ((ch & 0xf8) == 0xf0 && bytes >= 4 && ch > 0xf0 && in DecodeRawCharacter() 165 ch = ((ch & 7) << 6) | (p[1] & 0x3f); in DecodeRawCharacter() 166 ch = (ch << 6) | (p[2] & 0x3f); in DecodeRawCharacter() 167 ch = (ch << 6) | (p[3] & 0x3f); in DecodeRawCharacter() 169 } else if ((ch & 0xf0) == 0xe0 && bytes >= 3 && ch > 0xe0 && in DecodeRawCharacter() 171 ch = ((ch & 0xf) << 6) | (p[1] & 0x3f); in DecodeRawCharacter() 172 ch = (ch << 6) | (p[2] & 0x3f); in DecodeRawCharacter() 174 } else if ((ch & 0xe0) == 0xc0 && bytes >= 2 && ch > 0xc0 && in DecodeRawCharacter() [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/ |
| H A D | x86_isel.ll.expected | 8 ; PIC-NEXT: t0: ch = EntryToken 9 ; PIC-NEXT: t2: i64,ch = CopyFromReg t0, Register:i64 %0 17 ; WIN-NEXT: t0: ch = EntryToken 18 ; WIN-NEXT: t2: i64,ch = CopyFromReg t0, Register:i64 %0 32 ; PIC-NEXT: t0: ch = EntryToken 33 ; PIC-NEXT: t2: i32,ch = CopyFromReg t0, Register:i32 %0 42 ; WIN-NEXT: t0: ch = EntryToken 59 ; PIC-NEXT: t0: ch = EntryToken 71 ; WIN-NEXT: t0: ch = EntryToken 89 ; PIC-NEXT: t0: ch = EntryToken [all …]
|
| H A D | lanai_isel.ll.expected | 7 ; CHECK-NEXT: t0: ch = EntryToken 19 ; CHECK-NEXT: t15: ch,glue = CopyToReg t0, Register:i32 $rv, t28 32 ; CHECK-NEXT: t0: ch = EntryToken 33 ; CHECK-NEXT: t21: i32,ch = CopyFromReg t0, Register:i32 $r0 34 ; CHECK-NEXT: t13: ch,glue = CopyToReg t0, Register:i32 $rv, t21 51 ; CHECK-NEXT: t0: ch = EntryToken 52 ; CHECK-NEXT: t33: i32,ch = CopyFromReg t0, Register:i32 $r0 53 ; CHECK-NEXT: t14: ch,glue = CopyToReg t0, Register:i32 $rv, t33 74 ; CHECK-NEXT: t0: ch = EntryToken 75 ; CHECK-NEXT: t33: i32,ch = CopyFromReg t0, Register:i32 $r0 [all …]
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
| H A D | screen.py | 149 ch = self._decode(ch) 156 ch = self._decode(ch) 206 ch = self._decode(ch)[0] 208 ch = ch[0] 209 self.w[r-1][c-1] = ch 211 def put (self, ch): argument 216 ch = self._decode(ch) 227 ch = self._decode(ch) 233 self.put_abs (r,c,ch) 235 def insert (self, ch): argument [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | Editline.h | 299 unsigned char BreakLineCommand(int ch); 302 unsigned char EndOrAddLineCommand(int ch); 305 unsigned char DeleteNextCharCommand(int ch); 312 unsigned char PreviousLineCommand(int ch); 316 unsigned char NextLineCommand(int ch); 324 unsigned char NextHistoryCommand(int ch); 327 unsigned char BufferStartCommand(int ch); 330 unsigned char BufferEndCommand(int ch); 334 unsigned char TabCommand(int ch); 340 unsigned char TypedCharacter(int ch); [all …]
|