Home | History | Annotate | Download | only in strings

Lines Matching refs:IsStringASCII

391 TEST(StringUtilTest, IsStringASCII) {
402 // sure that bit masking in IsStringASCII works correctly.
410 EXPECT_TRUE(IsStringASCII(StringPiece(char_ascii + offset, len)));
413 EXPECT_FALSE(IsStringASCII(StringPiece(char_ascii + offset, len)));
425 EXPECT_TRUE(IsStringASCII(StringPiece16(char16_ascii + offset, len)));
429 IsStringASCII(StringPiece16(char16_ascii + offset, len)));
434 IsStringASCII(StringPiece16(char16_ascii + offset, len)));
444 EXPECT_TRUE(IsStringASCII(wchar_ascii.substr(0, len)));
448 IsStringASCII(wchar_ascii.substr(0, len)));
452 IsStringASCII(wchar_ascii.substr(0, len)));
457 IsStringASCII(wchar_ascii.substr(0, len)));
479 EXPECT_TRUE(IsStringASCII(char_cases[i]));
487 EXPECT_FALSE(IsStringASCII("Google \x80Video"));