Home
last modified time | relevance | path

Searched refs:isdigit (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/external/libcxx/test/std/localization/locales/locale.convenience/classification/
Disdigit.pass.cpp20 assert(!std::isdigit(' ', l)); in main()
21 assert(!std::isdigit('<', l)); in main()
22 assert(!std::isdigit('\x8', l)); in main()
23 assert(!std::isdigit('A', l)); in main()
24 assert(!std::isdigit('a', l)); in main()
25 assert(!std::isdigit('z', l)); in main()
26 assert( std::isdigit('3', l)); in main()
27 assert(!std::isdigit('.', l)); in main()
28 assert(!std::isdigit('f', l)); in main()
29 assert( std::isdigit('9', l)); in main()
[all …]
/external/compiler-rt/lib/interception/tests/
Dinterception_linux_test.cc24 DECLARE_REAL(int, isdigit, int);
26 INTERCEPTOR(int, isdigit, int d) { in INTERCEPTOR() argument
46 ASSERT_TRUE(INTERCEPT_FUNCTION(isdigit)); in TEST()
50 EXPECT_NE(0, isdigit('1')); in TEST()
52 EXPECT_EQ(0, isdigit('a')); in TEST()
57 EXPECT_NE(0, REAL(isdigit)('1')); in TEST()
58 EXPECT_EQ(0, REAL(isdigit)('a')); in TEST()
/external/llvm/test/Transforms/InstCombine/
Disdigit-1.ll1 ; Test that the isdigit library call simplifier works correctly.
7 declare i32 @isdigit(i32)
9 ; Check isdigit(c) -> (c - '0') <u 10;
13 %ret = call i32 @isdigit(i32 47)
20 %ret = call i32 @isdigit(i32 48)
27 %ret = call i32 @isdigit(i32 57)
34 %ret = call i32 @isdigit(i32 58)
42 %ret = call i32 @isdigit(i32 %x)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Disdigit-1.ll1 ; Test that the isdigit library call simplifier works correctly.
7 declare i32 @isdigit(i32)
9 ; Check isdigit(c) -> (c - '0') <u 10;
13 %ret = call i32 @isdigit(i32 47)
20 %ret = call i32 @isdigit(i32 48)
27 %ret = call i32 @isdigit(i32 57)
34 %ret = call i32 @isdigit(i32 58)
42 %ret = call i32 @isdigit(i32 %x)
/external/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/
DIsDigit.ll5 declare i32 @isdigit(i32)
10 %val1 = call i32 @isdigit( i32 47 ) ; <i32> [#uses=1]
11 %val2 = call i32 @isdigit( i32 48 ) ; <i32> [#uses=1]
12 %val3 = call i32 @isdigit( i32 57 ) ; <i32> [#uses=1]
13 %val4 = call i32 @isdigit( i32 58 ) ; <i32> [#uses=1]
17 %rslt = call i32 @isdigit( i32 %sum ) ; <i32> [#uses=1]
/external/blktrace/
Dstrverscmp.c129 state = S_N | ((c1 == '0') + (isdigit (c1) != 0)); in strverscmp()
136 state |= (c1 == '0') + (isdigit (c1) != 0); in strverscmp()
139 state = result_type[state << 2 | (((c2 == '0') + (isdigit (c2) != 0)))]; in strverscmp()
147 while (isdigit (*p1++)) in strverscmp()
148 if (!isdigit (*p2++)) in strverscmp()
151 return isdigit (*p2) ? -1 : diff; in strverscmp()
/external/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp105 return isalpha(C) || isdigit(C) || C == '_' || C == '-' || C == '.' || in isIdentifierChar()
177 if (C.peek() != 'i' || !isdigit(C.peek(1))) in maybeLexIntegerType()
181 while (isdigit(C.peek())) in maybeLexIntegerType()
253 if (!isdigit(C.peek())) { in maybeLexMachineBasicBlock()
259 while (isdigit(C.peek())) in maybeLexMachineBasicBlock()
279 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
284 while (isdigit(C.peek())) in maybeLexIndex()
292 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
297 while (isdigit(C.peek())) in maybeLexIndexAndName()
343 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
[all …]
/external/e2fsprogs/misc/
Dbase_device.c76 !isdigit(cp[1]) || !isdigit(cp[3])) in base_device()
86 if (isdigit(*cp)) in base_device()
115 if (!isdigit(*cp)) in base_device()
137 if (!isdigit(*cp)) in base_device()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp111 return isalpha(C) || isdigit(C) || C == '_' || C == '-' || C == '.' || in isIdentifierChar()
271 if (!isdigit(C.peek())) { in maybeLexMachineBasicBlock()
277 while (isdigit(C.peek())) in maybeLexMachineBasicBlock()
300 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
305 while (isdigit(C.peek())) in maybeLexIndex()
313 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
318 while (isdigit(C.peek())) in maybeLexIndexAndName()
364 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
374 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
391 while (isdigit(C.peek())) in lexVirtualRegister()
[all …]
/external/swiftshader/third_party/LLVM/lib/AsmParser/
DLLLexer.cpp315 if (isdigit(CurPtr[0])) { in LexAt()
316 for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) in LexAt()
379 if (isdigit(CurPtr[0])) { in LexPercent()
380 for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) in LexPercent()
440 if (!IntEnd && !isdigit(*CurPtr)) IntEnd = CurPtr; in LexIdentifier()
755 if (!isdigit(TokStart[0]) && !isdigit(CurPtr[0])) { in LexDigitOrNegative()
769 for (; isdigit(CurPtr[0]); ++CurPtr) in LexDigitOrNegative()
806 while (isdigit(CurPtr[0])) ++CurPtr; in LexDigitOrNegative()
809 if (isdigit(CurPtr[1]) || in LexDigitOrNegative()
810 ((CurPtr[1] == '-' || CurPtr[1] == '+') && isdigit(CurPtr[2]))) { in LexDigitOrNegative()
[all …]
/external/ppp/pppd/plugins/pppoatm/
Dtext2atm.c30 if (isdigit(*text)) { in try_pvc()
31 if (*text == '0' && isdigit(text[1])) return TRY_OTHER; in try_pvc()
37 while (isdigit(*text)); in try_pvc()
84 if (isdigit(*walk)) { in do_try_nsap()
117 value = isdigit(*text) ? *text-'0' : (islower(*text) ? in do_try_nsap()
139 if (!isdigit(*text)) return -1; /* non-digit in length */ in do_try_nsap()
167 if (isdigit(*text)) { in try_e164()
/external/llvm/lib/AsmParser/
DLLLexer.cpp365 if (isdigit(static_cast<unsigned char>(CurPtr[0]))) { in LexVar()
366 for (++CurPtr; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexVar()
432 if (isdigit(static_cast<unsigned char>(CurPtr[0]))) { in LexHash()
433 for (++CurPtr; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexHash()
458 if (!IntEnd && !isdigit(static_cast<unsigned char>(*CurPtr))) in LexIdentifier()
914 if (!isdigit(static_cast<unsigned char>(TokStart[0])) && in LexDigitOrNegative()
915 !isdigit(static_cast<unsigned char>(CurPtr[0]))) { in LexDigitOrNegative()
929 for (; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexDigitOrNegative()
953 while (isdigit(static_cast<unsigned char>(CurPtr[0]))) ++CurPtr; in LexDigitOrNegative()
956 if (isdigit(static_cast<unsigned char>(CurPtr[1])) || in LexDigitOrNegative()
[all …]
/external/libcxx/test/std/strings/c.strings/
Dcctype.pass.cpp34 #ifdef isdigit
35 #error isdigit defined
81 ASSERT_SAME_TYPE(int, decltype(std::isdigit(0))); in main()
96 assert(!std::isdigit('a')); in main()
/external/pdfium/fpdfsdk/
Dcpdfsdk_datetime.cpp138 while (i < strLength && !std::isdigit(dtStr[i])) in FromPDFDateTimeString()
151 if (!std::isdigit(ch)) in FromPDFDateTimeString()
165 if (!std::isdigit(ch)) in FromPDFDateTimeString()
179 if (!std::isdigit(ch)) in FromPDFDateTimeString()
193 if (!std::isdigit(ch)) in FromPDFDateTimeString()
207 if (!std::isdigit(ch)) in FromPDFDateTimeString()
221 if (!std::isdigit(ch)) in FromPDFDateTimeString()
242 if (!std::isdigit(ch)) in FromPDFDateTimeString()
258 if (!std::isdigit(ch)) in FromPDFDateTimeString()
/external/libcxx/test/std/depr/depr.c.headers/
Dctype_h.pass.cpp32 #ifdef isdigit
33 #error isdigit defined
78 static_assert((std::is_same<decltype(isdigit(0)), int>::value), ""); in main()
93 assert(!isdigit('a')); in main()
/external/clang/test/Sema/
Denable_if.c69 int isdigit(int c) __attribute__((overloadable)); // expected-note{{candidate function}}
70 int isdigit(int c) __attribute__((overloadable)) // expected-note{{candidate function has been exp…
75 isdigit(c); // expected-warning{{ignoring return value of function declared with pure attribute}} in test3()
76 isdigit(10); // expected-warning{{ignoring return value of function declared with pure attribute}} in test3()
78isdigit(-10); // expected-error{{call to unavailable function 'isdigit': 'c' must have the value … in test3()
/external/mdnsresponder/Clients/
DClientCommon.c55 if (isdigit(cstr[-1]) && isdigit(cstr[0]) && isdigit(cstr[1])) in GetNextLabel()
/external/python/cpython2/Python/
Datof.c16 while ((c = *s++) != '\0' && isdigit(c)) { in atof()
20 while ((c = *s++) != '\0' && isdigit(c)) { in atof()
35 while (isdigit(c)) { in atof()
/external/python/cpython2/Tools/pybench/
DStrings.py477 s.isdigit()
485 s.isdigit()
493 s.isdigit()
501 s.isdigit()
509 s.isdigit()
517 s.isdigit()
525 s.isdigit()
533 s.isdigit()
541 s.isdigit()
549 s.isdigit()
/external/u-boot/lib/
Dstrto.c41 while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp-'0' : (islower(*cp) in simple_strtoul()
138 while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp - '0' in simple_strtoull()
156 if (isdigit(end[-1])) { in trailing_strtoln()
158 if (!isdigit(*p)) in trailing_strtoln()
/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers.cc234 if (!isdigit(SafeFirstChar(str))) return false; in safe_strto64()
245 } while (isdigit(SafeFirstChar(str))); in safe_strto64()
254 } while (isdigit(SafeFirstChar(str))); in safe_strto64()
266 if (!isdigit(SafeFirstChar(str))) return false; in safe_strtou64()
276 } while (isdigit(SafeFirstChar(str))); in safe_strtou64()
296 if (!isdigit(SafeFirstChar(str))) return false; in safe_strto32()
305 } while (isdigit(SafeFirstChar(str))); in safe_strto32()
317 if (!isdigit(SafeFirstChar(str))) return false; in safe_strtou32()
326 } while (isdigit(SafeFirstChar(str))); in safe_strtou32()
/external/libcxx/include/
Dcctype24 int isdigit(int c);
63 #ifdef isdigit
64 #undef isdigit
108 using ::isdigit;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/
DLLLexer.cpp339 if (!isdigit(static_cast<unsigned char>(CurPtr[0]))) in LexUIntID()
342 for (++CurPtr; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexUIntID()
460 if (!IntEnd && !isdigit(static_cast<unsigned char>(*CurPtr))) in LexIdentifier()
1016 if (!isdigit(static_cast<unsigned char>(TokStart[0])) && in LexDigitOrNegative()
1017 !isdigit(static_cast<unsigned char>(CurPtr[0]))) { in LexDigitOrNegative()
1031 for (; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexDigitOrNegative()
1055 while (isdigit(static_cast<unsigned char>(CurPtr[0]))) ++CurPtr; in LexDigitOrNegative()
1058 if (isdigit(static_cast<unsigned char>(CurPtr[1])) || in LexDigitOrNegative()
1060 isdigit(static_cast<unsigned char>(CurPtr[2])))) { in LexDigitOrNegative()
1062 while (isdigit(static_cast<unsigned char>(CurPtr[0]))) ++CurPtr; in LexDigitOrNegative()
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DStringToOffsetTable.h62 if (isdigit(AggregateString[i+1])) { in EmitString()
63 assert(isdigit(AggregateString[i+2]) && in EmitString()
64 isdigit(AggregateString[i+3]) && in EmitString()
/external/llvm/include/llvm/TableGen/
DStringToOffsetTable.h64 if (isdigit(AggregateString[i+1])) { in EmitString()
65 assert(isdigit(AggregateString[i+2]) && in EmitString()
66 isdigit(AggregateString[i+3]) && in EmitString()

12345678910>>...24