Home
last modified time | relevance | path

Searched refs:Text (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/freebsd-src/crypto/openssl/demos/cms/
H A Dcomp.txt3 Some Text To be Compressed
4 Some Text To be Compressed
5 Some Text To be Compressed
6 Some Text To be Compressed
7 Some Text To be Compressed
8 Some Text To be Compressed
9 Some Text To be Compressed
10 Some Text To be Compressed
11 Some Text To be Compressed
12 Some Text To be Compressed
[all …]
/freebsd-src/contrib/llvm-project/clang/lib/Format/
H A DEncoding.h31 /// Detects encoding of the Text. If the Text can be decoded using UTF-8,
33 inline Encoding detectEncoding(StringRef Text) {
34 const llvm::UTF8 *Ptr = reinterpret_cast<const llvm::UTF8 *>(Text.begin()); in detectEncoding() argument
35 const llvm::UTF8 *BufEnd = reinterpret_cast<const llvm::UTF8 *>(Text.end()); in detectEncoding()
41 /// Returns the number of columns required to display the \p Text on a
42 /// generic Unicode-capable terminal. Text is assumed to use the specified
44 inline unsigned columnWidth(StringRef Text, Encoding Encoding) {
46 int ContentWidth = llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
54 return Text in columnWidth()
45 columnWidth(StringRef Text,Encoding Encoding) columnWidth() argument
61 columnWidthWithTabs(StringRef Text,unsigned StartColumn,unsigned TabWidth,Encoding Encoding) columnWidthWithTabs() argument
97 getEscapeSequenceLength(StringRef Text) getEscapeSequenceLength() argument
[all...]
H A DIntegerLiteralSeparatorFixer.cpp94 auto Text = StringRef(SourceMgr.getCharacterData(Location), Length); in process() local
96 if (isClangFormatOff(Text)) in process()
98 else if (isClangFormatOn(Text)) in process()
102 if (Skip || Tok.isNot(tok::numeric_constant) || Text[0] == '.' || in process()
107 const auto B = getBase(Text); in process()
119 Text.find_first_of(IsBase16 ? Suffixes.drop_back() : Suffixes); in process()
121 Text = Text.substr(0, Pos); in process()
125 if ((IsBase10 && Text.find_last_of(".eEfFdDmM") != StringRef::npos) || in process()
126 (IsBase16 && Text.find_last_of(".pP") != StringRef::npos)) { in process()
129 const auto Start = Text[0] == '0' ? 2 : 0; in process()
[all …]
H A DBreakableToken.cpp68 getCommentSplit(StringRef Text, unsigned ContentStartColumn, in getCommentSplit() argument
72 LLVM_DEBUG(llvm::dbgs() << "Comment split: \"" << Text in getCommentSplit()
82 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit()
84 encoding::getCodePointNumBytes(Text[MaxSplitBytes], Encoding); in getCommentSplit()
86 Text.substr(MaxSplitBytes, BytesInChar), ContentStartColumn + NumChars, in getCommentSplit()
96 Text.find_first_of(Blanks, MaxSplitBytes); in getCommentSplit()
97 if (SpaceOffset != StringRef::npos && SpaceOffset + 1 < Text.size() && in getCommentSplit()
98 Text[SpaceOffset + 1] == '{') { in getCommentSplit()
103 StringRef::size_type SpaceOffset = Text.find_last_of(Blanks, MaxSplitBytes); in getCommentSplit()
115 Text in getCommentSplit()
171 getStringSplit(StringRef Text,unsigned UsedColumns,unsigned ColumnLimit,unsigned TabWidth,encoding::Encoding Encoding) getStringSplit() argument
433 StringRef Text = Content[LineIndex].substr(TailOffset); compressWhitespace() local
529 const StringRef &Text = Content[i]; BreakableBlockComment() local
715 StringRef Text = Content[LineIndex].substr(TailOffset); insertBreak() local
1029 StringRef Text = Content[LineIndex].substr(TailOffset); insertBreak() local
[all...]
H A DFormatTokenLexer.cpp826 auto Text = Lex->getBuffer().substr(OpenOffset, CloseOffset - OpenOffset + 2); in handleTableGenNumericLikeIdentifier()
827 MultiLineString->TokenText = Text; in handleTableGenNumericLikeIdentifier()
829 Lex->getSourceLocation(Lex->getBufferLocation() - 2 + Text.size()))); in handleTableGenNumericLikeIdentifier()
830 auto FirstLineText = Text; in handleTableGenNumericLikeIdentifier()
831 auto FirstBreak = Text.find('\n'); in handleTableGenNumericLikeIdentifier()
835 FirstLineText = Text.substr(0, FirstBreak + 1); in handleTableGenNumericLikeIdentifier()
837 auto LastBreak = Text.rfind('\n'); in handleTableGenNumericLikeIdentifier()
839 Text.substr(LastBreak + 1), MultiLineString->OriginalColumn, in handleTableGenNumericLikeIdentifier()
853 StringRef Text = Tok->TokenText; in handleTemplateStrings()
862 if (Text in handleTemplateStrings()
788 auto Text = Lex->getBuffer().substr(OpenOffset, CloseOffset + 2); handleTableGenMultilineString() local
815 StringRef Text = Tok->TokenText; handleTableGenNumericLikeIdentifier() local
1070 countLeadingWhitespace(StringRef Text) countLeadingWhitespace() argument
1128 StringRef Text = FormatTok->TokenText; getNextToken() local
1291 StringRef Text = FormatTok->TokenText; getNextToken() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp70 if (Last.Kind == FragmentKind::Text) { in appendSpace()
77 append("", FragmentKind::Text); in appendSpace()
98 if (Last.Kind == FragmentKind::Text && Last.Spelling.back() == ';') in getFragmentKindString()
127 case DeclarationFragments::FragmentKind::Text:
148 .Case("text", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
159 return Fragments.append(" ", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
161 .append("(", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
162 .append(")", DeclarationFragments::FragmentKind::Text); in getExceptionSpecificationString()
167 return Fragments.append(" ", DeclarationFragments::FragmentKind::Text)
173 return Fragments.append(" ", DeclarationFragments::FragmentKind::Text) in getStructureTypeFragment()
[all...]
/freebsd-src/crypto/openssl/external/perl/Text-Template-1.56/t/
H A Dbasic.t40 my $template = Text::Template->new('type' => 'FILE', 'source' => $TEMPFILE);
41 ok(defined $template) or diag $Text::Template::ERROR;
63 $text = Text::Template->fill_this_in($template_1, 'package' => 'X');
69 $template = Text::Template->new(type => 'FILEHANDLE', source => $tmpl);
70 ok defined $template or diag $Text::Template::ERROR;
83 $template = Text::Template->new(
103 $tmpl = Text::Template->new(TYPE => 'STRING', SOURCE => 'B{"\\}"}C{"\\{"}D');
111 $tmpl = Text::Template->new(TYPE => 'STRING', SOURCE => qq{A{"\t"}B});
141 my $tmpl = Text::Template->new(TYPE => 'STRING', SOURCE => $test);
153 $template = Text::Template->new(type => 'FILEHANDLE', source => $tmpl);
[all …]
H A Derror.t14 Text::Template->new();
20 eval { Text::Template->new(TYPE => 'FILE'); };
24 eval { Text::Template->new(TYPE => 'wlunch', SOURCE => 'fish food'); };
28 my $o = Text::Template->new(
33 ok defined($Text::Template::ERROR)
34 && $Text::Template::ERROR =~ /^Couldn't open file/;
H A Ddelimiters.t17 my $template1 = Text::Template->new(
21 or die "Couldn't construct template object: $Text::Template::ERROR; aborting";
27 $template1 = Text::Template->new(TYPE => 'STRING', SOURCE => $template);
34 $template1 = Text::Template->new(
38 or die "Couldn't construct template object: $Text::Template::ERROR; aborting";
44 $template1 = Text::Template->new(TYPE => 'STRING', SOURCE => $template);
73 my $tmpl = Text::Template->new(
H A Dbroken.t12 my $r = Text::Template->new(
20 my $r = Text::Template->new(
29 my $r = Text::Template->new(
37 my $r = Text::Template->new(
49 my $r = Text::Template->new(
62 my $r = Text::Template->new(TYPE => 'string', SOURCE => 'abc{1/0}defg')
H A Dsafe.t37 my $template1 = Text::Template->new(type => 'STRING', source => $goodtemplate);
38 my $template2 = Text::Template->new(type => 'STRING', source => $goodtemplate);
71 $template1 = Text::Template->new('type' => 'STRING', 'source' => $badtemplate);
74 $template2 = Text::Template->new('type' => 'STRING', 'source' => $badtemplate);
107 $template1 = Text::Template->new('type' => 'STRING', 'source' => $template);
110 $template2 = Text::Template->new('type' => 'STRING', 'source' => $template);
126 my $templateB = Text::Template->new(TYPE => 'STRING', SOURCE => '{die}');
H A Dtaint.t37 my $obj = Text::Template->new(@_);
48 my $obj = Text::Template->new(@_);
59 ok !Text::Template::_is_clean($_[0]);
63 ok Text::Template::_is_clean($_[0]);
109 Text::Template::_unconditionally_untaint($ttemplate);
111 Text::Template::_unconditionally_untaint($tfile);
H A Dwarnings.t5 use Text::Template;
31 $template = Text::Template->new(type => 'STRING', source => $template);
40 $template = Text::Template->new(type => 'STRING', package => 'MY', source => '');
43 $template = Text::Template->new(type => 'STRING', package => 'MY', source => '');
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp77 StringRef Text = getText(E, Context); in buildParens() local
78 if (Text.empty()) in buildParens()
81 return ("(" + Text + ")").str(); in buildParens()
82 return Text.str(); in buildParens()
90 StringRef Text = in buildDereference() local
92 if (Text.empty()) in buildDereference()
94 return Text.str(); in buildDereference()
97 StringRef Text = getText(E, Context); in buildDereference() local
98 if (Text.empty()) in buildDereference()
102 return ("*(" + Text + ")").str(); in buildDereference()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() argument
27 auto Require = [Text](bool Assertion, const char *Msg) { in Annotations()
28 require(Assertion, Msg, Text); in Annotations()
34 Code.reserve(Text.size()); in Annotations()
35 while (!Text.empty()) { in Annotations()
36 if (Text.consume_front("^")) { in Annotations()
44 if (Text.consume_front("[[")) { in Annotations()
52 if (Text.consume_front("]]")) { in Annotations()
63 if (Text.consume_front("$")) { in Annotations()
65 Text.take_while([](char C) { return llvm::isAlnum(C) || C == '_'; }); in Annotations()
[all …]
/freebsd-src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp59 StringRef Text; member
116 Result.Text = StringRef(CodeCompletionLocation, 0); in getNextToken()
123 Result.Text = ""; in getNextToken()
133 Result.Text = Code.substr(0, 1); in getNextToken()
138 Result.Text = Code.substr(0, 1); in getNextToken()
145 Result.Text = Code.substr(0, 1); in getNextToken()
150 Result.Text = Code.substr(0, 1); in getNextToken()
155 Result.Text = Code.substr(0, 1); in getNextToken()
182 Result.Text = Code.substr(0, TokenLength); in getNextToken()
198 Result.Text = Code.substr(0, TokenLength); in getNextToken()
[all …]
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderAnalysis.cpp95 std::optional<StringRef> parseIWYUPragma(const char *Text) { in parseIWYUPragma() argument
97 if (Text[0] != '/' || (Text[1] != '/' && Text[1] != '*')) in parseIWYUPragma()
99 bool BlockComment = Text[1] == '*'; in parseIWYUPragma()
100 Text += 2; in parseIWYUPragma()
104 if (strncmp(Text, IWYUPragma.data(), IWYUPragma.size())) in parseIWYUPragma()
106 Text += IWYUPragma.size(); in parseIWYUPragma()
107 const char *End = Text; in parseIWYUPragma()
110 StringRef Rest(Text, End - Text); in parseIWYUPragma()
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp183 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, const char *Text) in Chunk() argument
184 : Kind(Kind), Text("") { in Chunk()
192 this->Text = Text; in Chunk()
199 this->Text = "("; in Chunk()
203 this->Text = ")"; in Chunk()
207 this->Text = "["; in Chunk()
211 this->Text = "]"; in Chunk()
215 this->Text = "{"; in Chunk()
219 this->Text in Chunk()
257 CreateText(const char * Text) CreateText() argument
448 AddTypedTextChunk(const char * Text) AddTypedTextChunk() argument
452 AddTextChunk(const char * Text) AddTextChunk() argument
464 AddInformativeChunk(const char * Text) AddInformativeChunk() argument
478 AddChunk(CodeCompletionString::ChunkKind CK,const char * Text) AddChunk() argument
[all...]
/freebsd-src/contrib/llvm-project/clang/include/clang/AST/
H A DRawCommentList.h121 StringRef Text = getRawText(SourceMgr); in hasUnsupportedSplice() local
122 if (Text.size() < 6 || Text[0] != '/') in hasUnsupportedSplice()
124 if (Text[1] == '*') in hasUnsupportedSplice()
125 return Text[Text.size() - 1] != '/' || Text[Text.size() - 2] != '*'; in hasUnsupportedSplice()
126 return Text[1] != '/'; in hasUnsupportedSplice()
154 std::string Text; member
[all...]
H A DCommentLexer.h103 void setText(StringRef Text) { in setText() argument
105 TextPtr = Text.data(); in setText()
106 IntVal = Text.size(); in setText()
145 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText() argument
147 TextPtr = Text.data(); in setVerbatimBlockText()
148 IntVal = Text.size(); in setVerbatimBlockText()
166 void setVerbatimLineText(StringRef Text) { in setVerbatimLineText() argument
168 TextPtr = Text.data(); in setVerbatimLineText()
169 IntVal = Text.size(); in setVerbatimLineText()
303 StringRef Text(BufferPtr, TokEnd - BufferPtr); in formTextToken()
[all …]
H A DComment.h223 StringRef Text;
292 StringRef Text;
295 TextComment(SourceLocation LocBegin, SourceLocation LocEnd, StringRef Text)
297 Text(Text) {
309 StringRef getText() const LLVM_READONLY { return Text; }
381 return Args[Idx].Text;
671 return Args[Idx].Text;
759 return Args[0].Text;
826 return Args[0].Text;
855 StringRef Text;
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkup.cpp78 parseTextOutsideMarkup(takeTo(Line, Element->Text.begin())); in nextNode()
80 advanceTo(Line, Element->Text.end()); in nextNode()
125 Element.Text = Line.slice(BeginPos, EndPos); in parseElement()
129 StringRef Content = Element.Text.drop_front(3).drop_back(3); in parseElement()
145 static MarkupNode textNode(StringRef Text) { in textNode() argument
147 Node.Text = Text; in textNode()
154 void MarkupParser::parseTextOutsideMarkup(StringRef Text) { in parseTextOutsideMarkup() argument
155 if (Text.empty()) in parseTextOutsideMarkup()
158 while (SGRSyntax.match(Text, &Matches)) { in parseTextOutsideMarkup()
160 if (Matches.begin()->begin() != Text.begin()) in parseTextOutsideMarkup()
[all …]
/freebsd-src/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp508 std::string Text; member
509 TextPiece(StringRef Text, StringRef Role = "") in TextPiece()
510 : Piece(TextPieceClass), Role(Role), Text(Text.str()) {} in TextPiece()
635 DiagText(DiagnosticTextBuilder &Builder, StringRef Text) in DiagText()
636 : Builder(Builder), Root(parseDiagText(Text, StopAt::End)) {} in DiagText()
647 Piece *parseDiagText(StringRef &Text, StopAt Stop);
733 CASE(Text); in Visit()
875 StringRef T = P->Text; in VisitText()
949 void VisitText(TextPiece *P) { Result += P->Text; } in VisitMulti()
1022 parseDiagText(StringRef & Text,StopAt Stop) parseDiagText() argument
1177 StringRef Text = R->getValueAsString("Summary"); buildForDocumentation() local
1196 StringRef Text = R->getValueAsString("Summary"); buildForDefinition() local
1714 StringRef Text = R->getValueAsString("Summary"); writeDiagnosticText() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DUnicode.cpp481 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() argument
484 for (size_t i = 0, e = Text.size(); i < e; i += Length) { in columnWidthUTF8()
485 Length = getNumBytesForUTF8(Text[i]); in columnWidthUTF8()
489 if (!isprintableascii(Text[i])) in columnWidthUTF8()
495 if (Length <= 0 || i + Length > Text.size()) in columnWidthUTF8()
498 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DMarkup.h35 StringRef Text; member
45 return Text == Other.Text && Tag == Other.Tag && Fields == Other.Fields;
85 return SGRSyntax.match(Node.Text); in isSGR()
90 void parseTextOutsideMarkup(StringRef Text);

12345678910>>...14