| /trueos/contrib/llvm/tools/clang/lib/Format/ |
| HD | Encoding.h | 34 inline Encoding detectEncoding(StringRef Text) { in detectEncoding() argument 35 const UTF8 *Ptr = reinterpret_cast<const UTF8 *>(Text.begin()); in detectEncoding() 36 const UTF8 *BufEnd = reinterpret_cast<const UTF8 *>(Text.end()); in detectEncoding() 42 inline unsigned getCodePointCountUTF8(StringRef Text) { in getCodePointCountUTF8() argument 44 for (size_t i = 0, e = Text.size(); i < e; i += getNumBytesForUTF8(Text[i])) { in getCodePointCountUTF8() 52 inline unsigned getCodePointCount(StringRef Text, Encoding Encoding) { in getCodePointCount() argument 55 return getCodePointCountUTF8(Text); in getCodePointCount() 57 return Text.size(); in getCodePointCount() 64 inline unsigned columnWidth(StringRef Text, Encoding Encoding) { in columnWidth() argument 66 int ContentWidth = llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth() [all …]
|
| HD | BreakableToken.cpp | 42 static BreakableToken::Split getCommentSplit(StringRef Text, in getCommentSplit() argument 54 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit() 56 encoding::getCodePointNumBytes(Text[MaxSplitBytes], Encoding); in getCommentSplit() 58 encoding::columnWidthWithTabs(Text.substr(MaxSplitBytes, BytesInChar), in getCommentSplit() 63 StringRef::size_type SpaceOffset = Text.find_last_of(Blanks, MaxSplitBytes); in getCommentSplit() 66 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) { in getCommentSplit() 69 StringRef::size_type FirstNonWhitespace = Text.find_first_not_of(Blanks); in getCommentSplit() 73 SpaceOffset = Text.find_first_of( in getCommentSplit() 77 StringRef BeforeCut = Text.substr(0, SpaceOffset).rtrim(Blanks); in getCommentSplit() 78 StringRef AfterCut = Text.substr(SpaceOffset).ltrim(Blanks); in getCommentSplit() [all …]
|
| HD | WhitespaceManager.cpp | 253 StringRef Text) { in storeReplacement() argument 258 WhitespaceLength) == Text) in storeReplacement() 261 SourceMgr, CharSourceRange::getCharRange(Range), Text)); in storeReplacement() 264 void WhitespaceManager::appendNewlineText(std::string &Text, in appendNewlineText() argument 267 Text.append(UseCRLF ? "\r\n" : "\n"); in appendNewlineText() 270 void WhitespaceManager::appendNewlineText(std::string &Text, unsigned Newlines, in appendNewlineText() argument 277 Text.append(std::string(EscapedNewlineColumn - Offset - 1, ' ')); in appendNewlineText() 278 Text.append(UseCRLF ? "\\\r\n" : "\\\n"); in appendNewlineText() 284 void WhitespaceManager::appendIndentText(std::string &Text, in appendIndentText() argument 289 Text.append(std::string(Spaces, ' ')); in appendIndentText() [all …]
|
| HD | WhitespaceManager.h | 165 void storeReplacement(const SourceRange &Range, StringRef Text); 166 void appendNewlineText(std::string &Text, unsigned Newlines); 167 void appendNewlineText(std::string &Text, unsigned Newlines, 170 void appendIndentText(std::string &Text, unsigned IndentLevel,
|
| HD | ContinuationIndenter.cpp | 699 static bool getRawStringLiteralPrefixPostfix(StringRef Text, in getRawStringLiteralPrefixPostfix() argument 702 if (Text.startswith(Prefix = "R\"") || Text.startswith(Prefix = "uR\"") || in getRawStringLiteralPrefixPostfix() 703 Text.startswith(Prefix = "UR\"") || Text.startswith(Prefix = "u8R\"") || in getRawStringLiteralPrefixPostfix() 704 Text.startswith(Prefix = "LR\"")) { in getRawStringLiteralPrefixPostfix() 705 size_t ParenPos = Text.find('('); in getRawStringLiteralPrefixPostfix() 708 Text.substr(Prefix.size(), ParenPos - Prefix.size()); in getRawStringLiteralPrefixPostfix() 709 Prefix = Text.substr(0, ParenPos + 1); in getRawStringLiteralPrefixPostfix() 710 Postfix = Text.substr(Text.size() - 2 - Delimiter.size()); in getRawStringLiteralPrefixPostfix() 755 StringRef Text = Current.TokenText; in breakProtrudingToken() local 762 if ((Text.endswith(Postfix = "\"") && in breakProtrudingToken() [all …]
|
| HD | Format.cpp | 335 llvm::error_code parseConfiguration(StringRef Text, FormatStyle *Style) { in parseConfiguration() argument 336 if (Text.trim().empty()) in parseConfiguration() 338 llvm::yaml::Input Input(Text); in parseConfiguration() 344 std::string Text; in configurationAsText() local 345 llvm::raw_string_ostream Stream(Text); in configurationAsText() 1154 StringRef Text = FormatTok->TokenText; in getNextToken() local 1155 size_t FirstNewlinePos = Text.find('\n'); in getNextToken() 1160 encoding::columnWidthWithTabs(Text, Column, Style.TabWidth, Encoding); in getNextToken() 1167 Text.substr(0, FirstNewlinePos), Column, Style.TabWidth, Encoding); in getNextToken() 1172 Text.substr(Text.find_last_of('\n') + 1), 0, Style.TabWidth, in getNextToken() [all …]
|
| /trueos/contrib/llvm/tools/clang/lib/Sema/ |
| HD | CodeCompleteConsumer.cpp | 82 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, const char *Text) in Chunk() argument 83 : Kind(Kind), Text("") in Chunk() 92 this->Text = Text; in Chunk() 99 this->Text = "("; in Chunk() 103 this->Text = ")"; in Chunk() 107 this->Text = "["; in Chunk() 111 this->Text = "]"; in Chunk() 115 this->Text = "{"; in Chunk() 119 this->Text = "}"; in Chunk() 123 this->Text = "<"; in Chunk() [all …]
|
| /trueos/contrib/llvm/tools/clang/lib/ASTMatchers/Dynamic/ |
| HD | Parser.cpp | 45 TokenInfo() : Text(), Kind(TK_Eof), Range(), Value() {} in TokenInfo() 47 StringRef Text; member 83 Result.Text = ""; in getNextToken() 90 Result.Text = Code.substr(0, 1); in getNextToken() 95 Result.Text = Code.substr(0, 1); in getNextToken() 100 Result.Text = Code.substr(0, 1); in getNextToken() 105 Result.Text = Code.substr(0, 1); in getNextToken() 128 Result.Text = Code.substr(0, TokenLength); in getNextToken() 132 Result.Text = Code.substr(0, 1); in getNextToken() 154 Result->Text = Code.substr(0, Length); in consumeUnsignedLiteral() [all …]
|
| /trueos/gnu/usr.bin/grep/ |
| HD | xmalloc.c | 35 # define _(Text) gettext (Text) argument 38 # define _(Text) Text argument 40 #define N_(Text) Text argument
|
| HD | closeout.c | 24 # define _(Text) gettext (Text) argument 26 # define _(Text) Text argument
|
| /trueos/contrib/llvm/tools/clang/include/clang/AST/ |
| HD | Comment.h | 255 StringRef Text; variable 260 StringRef Text) : in TextComment() argument 262 Text(Text) { in TextComment() 274 StringRef getText() const LLVM_READONLY { return Text; } in getText() 294 StringRef Text; member 296 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 354 return Args[Idx].Text; in getArgText() 585 StringRef Text; member 588 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 658 return Args[Idx].Text; in getArgText() [all …]
|
| HD | CommentLexer.h | 105 void setText(StringRef Text) { in setText() argument 107 TextPtr = Text.data(); in setText() 108 IntVal = Text.size(); in setText() 147 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText() argument 149 TextPtr = Text.data(); in setVerbatimBlockText() 150 IntVal = Text.size(); in setVerbatimBlockText() 168 void setVerbatimLineText(StringRef Text) { in setVerbatimLineText() argument 170 TextPtr = Text.data(); in setVerbatimLineText() 171 IntVal = Text.size(); in setVerbatimLineText() 309 StringRef Text(BufferPtr, TokEnd - BufferPtr); in formTextToken() [all …]
|
| /trueos/contrib/llvm/lib/Support/ |
| HD | Unicode.cpp | 343 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() argument 346 for (size_t i = 0, e = Text.size(); i < e; i += Length) { in columnWidthUTF8() 347 Length = getNumBytesForUTF8(Text[i]); in columnWidthUTF8() 348 if (Length <= 0 || i + Length > Text.size()) in columnWidthUTF8() 351 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
|
| HD | Locale.cpp | 8 int columnWidth(StringRef Text) { in columnWidth() argument 10 return Text.size(); in columnWidth() 12 return llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
|
| /trueos/contrib/llvm/tools/clang/include/clang/Frontend/ |
| HD | VerifyDiagnosticConsumer.h | 146 StringRef Text, unsigned Min, unsigned Max); 153 const std::string Text; variable 167 StringRef Text, unsigned Min, unsigned Max) in Directive() argument 169 Text(Text), Min(Min), Max(Max) { in Directive()
|
| /trueos/contrib/llvm/tools/clang/lib/Edit/ |
| HD | EditedSource.cpp | 70 if (FA.Text.empty()) { in commitInsert() 71 FA.Text = copyString(text); in commitInsert() 77 concat = Twine(text) + FA.Text; in commitInsert() 79 concat = Twine(FA.Text) + text; in commitInsert() 81 FA.Text = copyString(concat); in commitInsert() 128 StrVec += FA.Text; in commitInsertFromRange() 192 TopFA->Text = StringRef(); in commitRemove() 229 commitInsert(edit.OrigLoc, edit.Offset, edit.Text, edit.BeforePrev); in commit() 342 StrVec = I->second.Text; in applyRewrites() 353 StrVec += act.Text; in applyRewrites() [all …]
|
| /trueos/contrib/llvm/tools/clang/lib/Frontend/ |
| HD | VerifyDiagnosticConsumer.cpp | 166 StringRef Text, unsigned Min, unsigned Max) in StandardDirective() argument 167 : Directive(DirectiveLoc, DiagnosticLoc, Text, Min, Max) { } in StandardDirective() 175 return S.find(Text) != StringRef::npos; in match() 184 StringRef Text, unsigned Min, unsigned Max) in RegexDirective() argument 185 : Directive(DirectiveLoc, DiagnosticLoc, Text, Min, Max), Regex(Text) { } in RegexDirective() 449 std::string Text; in ParseDirective() local 455 Text += Content.substr(CPos, FPos-CPos); in ParseDirective() 456 Text += '\n'; in ParseDirective() 459 if (Text.empty()) in ParseDirective() 460 Text.assign(ContentBegin, ContentEnd); in ParseDirective() [all …]
|
| /trueos/contrib/llvm/include/llvm/Support/ |
| HD | SourceMgr.h | 182 std::string Text; variable 187 : Range(Loc, Loc), Text(Insertion.str()) { in SMFixIt() 193 : Range(R), Text(Replacement.str()) { in SMFixIt() 197 StringRef getText() const { return Text; } in getText() 205 return Text < Other.Text;
|
| /trueos/contrib/llvm/tools/clang/include/clang/Sema/ |
| HD | CodeCompleteConsumer.h | 392 const char *Text; member 400 Chunk() : Kind(CK_Text), Text(0) { } in Chunk() 402 explicit Chunk(ChunkKind Kind, const char *Text = ""); 405 static Chunk CreateText(const char *Text); 599 void AddTypedTextChunk(const char *Text); 602 void AddTextChunk(const char *Text); 611 void AddInformativeChunk(const char *Text); 620 void AddChunk(CodeCompletionString::ChunkKind CK, const char *Text = "");
|
| /trueos/contrib/llvm/tools/clang/lib/AST/ |
| HD | CommentBriefParser.cpp | 48 bool isWhitespace(StringRef Text) { in isWhitespace() argument 49 for (StringRef::const_iterator I = Text.begin(), E = Text.end(); in isWhitespace()
|
| HD | CommentParser.cpp | 135 StringRef Text) { in formTokenWithChars() argument 143 Result.setText(Text); in formTokenWithChars() 181 StringRef Text = StringRef(TextPtr, Length); in lexWord() local 183 formTokenWithChars(Tok, Loc, WordBegin, Length, Text); in lexWord() 226 StringRef Text = StringRef(TextPtr, Length); in lexDelimitedSeq() local 229 Pos.BufferPtr - WordBegin, Text); in lexDelimitedSeq() 709 StringRef Text; in parseVerbatimLine() local 714 Text = Tok.getVerbatimLineText(); in parseVerbatimLine() 717 Text = ""; in parseVerbatimLine() 723 Text); in parseVerbatimLine()
|
| /trueos/contrib/llvm/include/llvm/MC/ |
| HD | SectionKind.h | 34 Text, enumerator 138 bool isText() const { return K == Text; } in isText() 208 static SectionKind getText() { return get(Text); } in getText()
|
| /trueos/contrib/file/magic/Magdir/ |
| HD | rtf | 4 # rtf: file(1) magic for Rich Text Format (RTF) 8 0 string {\\rtf Rich Text Format data,
|
| /trueos/tools/tools/vt/keymaps/ |
| HD | convert-keymaps.pl | 4 use Text::Iconv; 33 my $converter = Text::Iconv->new($old_enc, "UTF-8");
|
| HD | convert-INDEX.pl | 4 use Text::Iconv; 33 my $converter = Text::Iconv->new($old_enc, "UTF-8");
|