Searched refs:rewrite (Results 1 - 25 of 76) sorted by relevance

1234

/external/clang/test/Frontend/Inputs/
H A Drewrite-includes8.h1 #if __has_include_next(<rewrite-includes8.h>)
2 #elif __has_include(<rewrite-includes8.hfail>)
4 #if !__has_include("rewrite-includes8.h")
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
H A Dbasic.rb18 def rewrite( input, expected ) method in class:TestRewritingLexerOutputDirectly
27 rewrite( 'abc', '0abc' ) do |stream|
33 rewrite( 'abc', 'abcx' ) do |stream|
39 rewrite( 'abc', 'axbxc' ) do |stream|
46 rewrite( 'abc', 'xbc' ) do |stream|
52 rewrite( 'abc', 'abx' ) do |stream|
58 rewrite( 'abc', 'abx' ) do |stream|
64 rewrite( 'abc', 'axc' ) do |stream|
70 rewrite( 'abc', 'ayc' ) do |stream|
77 rewrite( 'ab
289 def rewrite( input ) method in class:TestRewritingWithTokenStream2
[all...]
/external/chromium_org/build/linux/
H A Dpkg-config-wrapper38 rewrite=`dirname $0`/rewrite_dirs.py
59 echo "$result"| $rewrite --sysroot "$root" --strip-prefix "$prefix"
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
H A DANTLRv3Tree.g115 : ^( BLOCK optionsSpec? (alternative rewrite)+ EOB )
119 : ^( BLOCK (alternative rewrite)+ EOB )
187 rewrite
H A DLeftRecursiveRuleWalker.g147 rewrite?
157 ( ^(ALT element+ EOA) rewrite? )+
238 rewrite
H A DANTLRTreePrinter.g129 | rewrite
316 alternative rewrite ( {out("|");} alternative rewrite )*
338 rewrite
/external/jsoncpp/src/jsontestrunner/
H A Dmain.cpp154 std::string &rewrite )
159 rewrite = writer.write( root );
163 printf( "Failed to create rewrite file: %s\n", rewritePath.c_str() );
166 fprintf( fout, "%s\n", rewrite.c_str() );
268 std::string rewritePath = basePath + ".rewrite";
269 std::string rewriteActualPath = basePath + ".actual-rewrite";
275 std::string rewrite; local
276 exitCode = rewriteValueTree( rewritePath, root, rewrite );
280 exitCode = parseAndSaveValueTree( rewrite, rewriteActualPath,
281 "rewrite", rewriteRoo
[all...]
/external/chromium_org/third_party/re2/re2/
H A Dre2.cc348 // Returns the maximum submatch needed for the rewrite to be done by Replace().
349 // E.g. if rewrite == "foo \\2,\\1", returns 2.
350 int RE2::MaxSubmatch(const StringPiece& rewrite) { argument
352 for (const char *s = rewrite.data(), *end = s + rewrite.size();
369 const StringPiece& rewrite) {
371 int nvec = 1 + MaxSubmatch(rewrite);
378 if (!re.Rewrite(&s, rewrite, vec, nvec))
389 const StringPiece& rewrite) {
391 int nvec = 1 + MaxSubmatch(rewrite);
367 Replace(string *str, const RE2& re, const StringPiece& rewrite) argument
387 GlobalReplace(string *str, const RE2& re, const StringPiece& rewrite) argument
427 Extract(const StringPiece &text, const RE2& re, const StringPiece &rewrite, string *out) argument
870 Rewrite(string *out, const StringPiece &rewrite, const StringPiece *vec, int veclen) const argument
918 CheckRewriteString(const StringPiece& rewrite, string* error) const argument
[all...]
H A Dre2.h357 // Replace the first match of "pattern" in "str" with "rewrite".
358 // Within "rewrite", backslash-escaped digits (\1 to \9) can be
360 // from the pattern. \0 in "rewrite" refers to the entire matching
372 const StringPiece& rewrite);
375 // of the pattern in the string with the rewrite. E.g.
389 const StringPiece& rewrite);
391 // Like Replace, except that if the pattern matches, "rewrite"
399 const StringPiece &rewrite,
479 // Check that the given rewrite string is suitable for use with this
482 // to satisfy all of the \N tokens in rewrite
[all...]
/external/regex-re2/re2/
H A Dre2.cc330 // Returns the maximum submatch needed for the rewrite to be done by Replace().
331 // E.g. if rewrite == "foo \\2,\\1", returns 2.
332 int RE2::MaxSubmatch(const StringPiece& rewrite) { argument
334 for (const char *s = rewrite.data(), *end = s + rewrite.size();
351 const StringPiece& rewrite) {
353 int nvec = 1 + MaxSubmatch(rewrite);
360 if (!re.Rewrite(&s, rewrite, vec, nvec))
371 const StringPiece& rewrite) {
373 int nvec = 1 + MaxSubmatch(rewrite);
349 Replace(string *str, const RE2& re, const StringPiece& rewrite) argument
369 GlobalReplace(string *str, const RE2& re, const StringPiece& rewrite) argument
409 Extract(const StringPiece &text, const RE2& re, const StringPiece &rewrite, string *out) argument
852 Rewrite(string *out, const StringPiece &rewrite, const StringPiece *vec, int veclen) const argument
900 CheckRewriteString(const StringPiece& rewrite, string* error) const argument
[all...]
H A Dre2.h357 // Replace the first match of "pattern" in "str" with "rewrite".
358 // Within "rewrite", backslash-escaped digits (\1 to \9) can be
360 // from the pattern. \0 in "rewrite" refers to the entire matching
372 const StringPiece& rewrite);
375 // of the pattern in the string with the rewrite. E.g.
389 const StringPiece& rewrite);
391 // Like Replace, except that if the pattern matches, "rewrite"
399 const StringPiece &rewrite,
479 // Check that the given rewrite string is suitable for use with this
482 // to satisfy all of the \N tokens in rewrite
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
H A Drewrite.rb39 TokenRewriteStream is a specialized form of CommonTokenStream that provides simple stream editing functionality. By creating <i>rewrite programs</i>, new text output can be created based upon the tokens in the stream. The basic token stream itself is preserved, and text output is rendered on demand using the #to_s method.
52 be executed by a token rewrite stream at some time in future when the stream is
59 a rewrite program list.
78 # run the rewrite operation represented by this object and append the output to +buffer+
97 Represents rewrite operation:
99 add string <tt>op.text</tt> to the rewrite output immediately before adding the
120 Represents rewrite operation:
122 add text <tt>op.text</tt> to the rewrite buffer in lieu of the text of tokens
158 Represents rewrite operation:
161 and do not add any text to the rewrite buffe
377 def rewrite( program_name = 'default', range = nil ) method
[all...]
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/
H A DANTLRv3.g63 LABEL; // $x used in rewrite rules
199 a1=alternative rewrite ( '|' a2=alternative rewrite )*
201 -> ^( BLOCK[$lp,"BLOCK"] optionsSpec? (alternative rewrite?)+ EOB[$rp,"EOB"] )
207 // leave here to demonstrate use of {...} in rewrite rule
211 : a1=alternative rewrite ( '|' a2=alternative rewrite )*
212 -> ^( {blkRoot} (alternative rewrite?)+ EOB["EOB"] )
346 rewrite
360 | /* empty rewrite */
[all...]
/external/chromium_org/third_party/re2/util/
H A Dpcre.cc333 const StringPiece& rewrite) {
340 if (!pattern.Rewrite(&s, rewrite, *str, vec, matches))
351 const StringPiece& rewrite) {
390 pattern.Rewrite(&out, rewrite, *str, vec, matches);
407 const StringPiece &rewrite,
414 return pattern.Rewrite(out, rewrite, text, vec, matches);
611 bool PCRE::Rewrite(string *out, const StringPiece &rewrite, argument
614 for (const char *s = rewrite.data(), *end = s + rewrite.size();
627 << " in regexp " << rewrite
331 Replace(string *str, const PCRE& pattern, const StringPiece& rewrite) argument
349 GlobalReplace(string *str, const PCRE& pattern, const StringPiece& rewrite) argument
405 Extract(const StringPiece &text, const PCRE& pattern, const StringPiece &rewrite, string *out) argument
647 CheckRewriteString(const StringPiece& rewrite, string* error) const argument
[all...]
H A Dpcre.h382 // Replace the first match of "pattern" in "str" with "rewrite".
383 // Within "rewrite", backslash-escaped digits (\1 to \9) can be
385 // from the pattern. \0 in "rewrite" refers to the entire matching
397 const StringPiece& rewrite);
400 // the string with the rewrite. Replacements are not subject to
411 const StringPiece& rewrite);
413 // Like Replace, except that if the pattern matches, "rewrite"
421 const StringPiece &rewrite,
424 // Check that the given @p rewrite string is suitable for use with
427 // of the \N tokens in @p rewrite, an
[all...]
/external/regex-re2/util/
H A Dpcre.cc328 const StringPiece& rewrite) {
335 if (!pattern.Rewrite(&s, rewrite, *str, vec, matches))
346 const StringPiece& rewrite) {
385 pattern.Rewrite(&out, rewrite, *str, vec, matches);
402 const StringPiece &rewrite,
409 return pattern.Rewrite(out, rewrite, text, vec, matches);
606 bool PCRE::Rewrite(string *out, const StringPiece &rewrite, argument
609 for (const char *s = rewrite.data(), *end = s + rewrite.size();
622 << " in regexp " << rewrite
326 Replace(string *str, const PCRE& pattern, const StringPiece& rewrite) argument
344 GlobalReplace(string *str, const PCRE& pattern, const StringPiece& rewrite) argument
400 Extract(const StringPiece &text, const PCRE& pattern, const StringPiece &rewrite, string *out) argument
642 CheckRewriteString(const StringPiece& rewrite, string* error) const argument
[all...]
H A Dpcre.h376 // Replace the first match of "pattern" in "str" with "rewrite".
377 // Within "rewrite", backslash-escaped digits (\1 to \9) can be
379 // from the pattern. \0 in "rewrite" refers to the entire matching
391 const StringPiece& rewrite);
394 // the string with the rewrite. Replacements are not subject to
405 const StringPiece& rewrite);
407 // Like Replace, except that if the pattern matches, "rewrite"
415 const StringPiece &rewrite,
418 // Check that the given @p rewrite string is suitable for use with
421 // of the \N tokens in @p rewrite, an
[all...]
/external/pcre/dist/
H A Dpcrecpp.h305 // "rewrite". Within "rewrite", backslash-escaped digits (\1 to \9)
307 // group from the pattern. \0 in "rewrite" refers to the entire
317 // occurrences of the pattern in the string with the rewrite.
327 // "rewrite" is copied into "out" (an additional argument) with
607 bool Replace(const StringPiece& rewrite,
610 int GlobalReplace(const StringPiece& rewrite,
613 bool Extract(const StringPiece &rewrite,
681 // Append the "rewrite" string, with backslash subsitutions from "text"
684 const StringPiece& rewrite,
[all...]
H A Dpcrecpp.cc332 bool RE::Replace(const StringPiece& rewrite, argument
340 if (!Rewrite(&s, rewrite, *str, vec, matches))
381 int RE::GlobalReplace(const StringPiece& rewrite, argument
440 Rewrite(&out, rewrite, *str, vec, matches);
455 bool RE::Extract(const StringPiece& rewrite, argument
463 return Rewrite(out, rewrite, text, vec, matches);
615 bool RE::Rewrite(string *out, const StringPiece &rewrite, argument
617 for (const char *s = rewrite.data(), *end = s + rewrite.size();
626 // n, rewrite
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
H A Dtree-rewrite.rb565 rewrite=true;
591 rewrite=true;
609 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteModeChainRuleFlatTree; rewrite=true;}
627 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteModeChainRuleTree; rewrite=true;}
645 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteModeChainRuleTree2; rewrite=true;}
664 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteModeChainRuleTree3; rewrite=true;}
683 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteModeChainRuleTree4; rewrite=true;}
702 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteModeChainRuleTree5; rewrite=true;}
721 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteOfRuleRef; rewrite=true;}
737 options {language=Ruby; output=AST; ASTLabelType=CommonTree; tokenVocab=RewriteOfRuleRefRoot; rewrite
[all...]
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
H A DASTTreeParser.stg32 * Auto build or rewrite
49 /** What to emit when there is no rewrite rule. For auto build
125 <else> <! rewrite mode !>
168 <else> <! rewrite mode !>
228 <else> <! rewrite mode !>
254 /** rule when output=AST and tracking for rewrite */
260 /** x+=rule when output=AST and tracking for rewrite */
266 /** ^(rule ...) rewrite */
272 /** ^(x+=rule ...) rewrite */
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/
H A DASTTreeParser.stg32 * Auto build or rewrite
48 /** What to emit when there is no rewrite rule. For auto build
124 <else> <! rewrite mode !>
167 <else> <! rewrite mode !>
227 <else> <! rewrite mode !>
253 /** rule when output=AST and tracking for rewrite */
259 /** x+=rule when output=AST and tracking for rewrite */
265 /** ^(rule ...) rewrite */
271 /** ^(x+=rule ...) rewrite */
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/
H A DASTTreeParser.stg32 * Auto build or rewrite
57 /** What to emit when there is no rewrite rule. For auto build
135 <else> <! rewrite mode !>
180 <else> <! rewrite mode !>
239 <else> <! rewrite mode !>
269 /** rule when output=AST and tracking for rewrite */
275 /** x+=rule when output=AST and tracking for rewrite */
281 /** ^(rule ...) rewrite */
287 /** ^(x+=rule ...) rewrite */
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
H A DCommonTreeNodeStream.cs188 #region Tree rewrite interface
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
H A DCommonTreeNodeStream.cs217 #region Tree rewrite interface

Completed in 7611 milliseconds

1234