Home
last modified time | relevance | path

Searched refs:columnWidthUTF8 (Results 1 – 6 of 6) sorted by relevance

/external/llvm/unittests/Support/
DUnicodeTest.cpp18 TEST(Unicode, columnWidthUTF8) { in TEST() argument
19 EXPECT_EQ(0, columnWidthUTF8("")); in TEST()
20 EXPECT_EQ(1, columnWidthUTF8(" ")); in TEST()
21 EXPECT_EQ(1, columnWidthUTF8("a")); in TEST()
22 EXPECT_EQ(1, columnWidthUTF8("~")); in TEST()
24 EXPECT_EQ(6, columnWidthUTF8("abcdef")); in TEST()
26 EXPECT_EQ(-1, columnWidthUTF8("\x01")); in TEST()
27 EXPECT_EQ(-1, columnWidthUTF8("aaaaaaaaaa\x01")); in TEST()
28 EXPECT_EQ(-1, columnWidthUTF8("\342\200\213")); // 200B ZERO WIDTH SPACE in TEST()
34 EXPECT_EQ(1, columnWidthUTF8("\302\255")); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DUnicode.h61 int columnWidthUTF8(StringRef Text);
/external/llvm/lib/Support/
DLocale.cpp13 return llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
DUnicode.cpp343 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() function
/external/clang/lib/Format/
DEncoding.h66 int ContentWidth = llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
/external/clang/lib/StaticAnalyzer/Checkers/
DLocalizationChecker.cpp725 if (!IsAggressive && llvm::sys::unicode::columnWidthUTF8(stringValue) < 2) in checkPreObjCMessage()