Searched refs:StringToCode (Results 1 – 3 of 3) sorted by relevance
13 TEST(cpdf_tounicodemap, StringToCode) { in TEST() argument14 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<0001>"), testing::Optional(1u)); in TEST()15 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<c2>"), testing::Optional(194u)); in TEST()16 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<A2>"), testing::Optional(162u)); in TEST()17 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<Af2>"), in TEST()19 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<FFFFFFFF>"), in TEST()23 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<100000000>").has_value()); in TEST()24 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<1abcdFFFF>").has_value()); in TEST()27 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("").has_value()); in TEST()28 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<>").has_value()); in TEST()[all …]
81 absl::optional<uint32_t> CPDF_ToUnicodeMap::StringToCode(ByteStringView str) { in StringToCode() function in CPDF_ToUnicodeMap156 absl::optional<uint32_t> code = StringToCode(word); in HandleBeginBFChar()170 absl::optional<uint32_t> lowcode_opt = StringToCode(lowcode_str); in HandleBeginBFRange()175 absl::optional<uint32_t> highcode_opt = StringToCode(highcode_str); in HandleBeginBFRange()194 absl::optional<uint32_t> value_or_error = StringToCode(start); in HandleBeginBFRange()
37 static absl::optional<uint32_t> StringToCode(ByteStringView str);