/prebuilts/go/darwin-x86/src/strings/ |
strings.go | 414 // HasSuffix tests whether the string s ends with suffix. 415 func HasSuffix(s, suffix string) bool { 416 return len(s) >= len(suffix) && s[len(s)-len(suffix):] == suffix 666 // TrimSuffix returns s without the provided trailing suffix string. 667 // If s doesn't end with suffix, s is returned unchanged. 668 func TrimSuffix(s, suffix string) string { 669 if HasSuffix(s, suffix) { 670 return s[:len(s)-len(suffix)] [all...] |
/prebuilts/go/linux-x86/src/bytes/ |
bytes.go | 348 // HasSuffix tests whether the byte slice s ends with suffix. 349 func HasSuffix(s, suffix []byte) bool { 350 return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix) 512 // TrimSuffix returns s without the provided trailing suffix string. 513 // If s doesn't end with suffix, s is returned unchanged. 514 func TrimSuffix(s, suffix []byte) []byte { 515 if HasSuffix(s, suffix) { 516 return s[:len(s)-len(suffix)] [all...] |
/prebuilts/go/linux-x86/src/strings/ |
strings.go | 414 // HasSuffix tests whether the string s ends with suffix. 415 func HasSuffix(s, suffix string) bool { 416 return len(s) >= len(suffix) && s[len(s)-len(suffix):] == suffix 666 // TrimSuffix returns s without the provided trailing suffix string. 667 // If s doesn't end with suffix, s is returned unchanged. 668 func TrimSuffix(s, suffix string) string { 669 if HasSuffix(s, suffix) { 670 return s[:len(s)-len(suffix)] [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
imputil.py | 53 def add_suffix(self, suffix, importFunc): 55 self.fs_imp.add_suffix(suffix, importFunc) 409 # byte-compiled file suffix character 412 # byte-compiled file suffix 532 def add_suffix(self, suffix, importFunc): 534 self.suffixes.append((suffix, importFunc)) 567 for suffix, importFunc in self.suffixes: 568 filename = pathname + suffix 579 # SUFFIX-BASED IMPORTERS 699 # importer classes by registering a suffix or a Boolean function, plus [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
imputil.py | 53 def add_suffix(self, suffix, importFunc): 55 self.fs_imp.add_suffix(suffix, importFunc) 409 # byte-compiled file suffix character 412 # byte-compiled file suffix 532 def add_suffix(self, suffix, importFunc): 534 self.suffixes.append((suffix, importFunc)) 567 for suffix, importFunc in self.suffixes: 568 filename = pathname + suffix 579 # SUFFIX-BASED IMPORTERS 699 # importer classes by registering a suffix or a Boolean function, plus [all...] |
/toolchain/binutils/binutils-2.25/cpu/ |
m32c.opc | 763 /* Parse the suffix as :<char> or as nothing followed by a whitespace. */ 766 parse_suffix (const char **strp, char suffix) 770 if (**strp == ':' && TOLOWER (*(*strp + 1)) == suffix) 779 return "Invalid suffix"; /* Anything -- will not be seen. */ 810 /* Parse an empty suffix. Fail if the next char is ':'. */ 817 return "Unexpected suffix"; 975 /* Always print the short insn format suffix as ':<char>'. */ 978 print_suffix (void * dis_info, char suffix) 982 (*info->fprintf_func) (info->stream, ":%c", suffix); 1030 /* Print the empty suffix. * [all...] |
/external/llvm/lib/Target/X86/ |
X86MCInstLower.cpp | 135 StringRef Suffix; 143 Suffix = "$stub"; 148 Suffix = "$non_lazy_ptr"; 152 if (!Suffix.empty()) 163 assert(Suffix.empty()); 168 Name += Suffix; 236 // These affect the name of the symbol, not any suffix. [all...] |
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/ |
LayoutBinderWriter.kt | 223 fun FlagSet.notEmpty(cb : (suffix : String, value : Long) -> Unit) { 244 fun <T> FlagSet.mapOr(other : FlagSet, cb : (suffix : String, index : Int) -> T) : List<T> { 588 mDirtyFlags.mapOr(flagSet) { suffix, index -> 589 tab("${mDirtyFlags.localName}$suffix |= ${flagSet.localValue(index)};") 638 mDirtyFlags.mapOr(flagSet) { suffix, index -> 649 mDirtyFlags.mapOr(flagSet) { suffix, index -> 650 tab("${mDirtyFlags.localName}$suffix |= ${flagSet.localValue(index)};") 730 flag.notEmpty { suffix, value -> 733 app(" ", " ${flag.type} ${flag.localName}$suffix = ${longToBinary(value)};") 792 "${tmpDirtyFlags.mapOr(it.expr.dirtyFlagSet) { suffix, index - [all...] |
/build/kati/ |
dep.cc | 76 : rule(r), suffix(s) { 79 StringPiece suffix; member in struct:__anon1258::RuleTrie::Entry 104 if ((ent.suffix.empty() && name.empty()) || 105 HasSuffix(name, ent.suffix.substr(1))) { 136 // suffix rule. 251 LOG_STAT("%zu suffix rules", suffix_rules_.size());
|
strutil.cc | 149 bool HasSuffix(StringPiece str, StringPiece suffix) { 150 ssize_t size_diff = str.size() - suffix.size(); 151 return size_diff >= 0 && str.substr(size_diff) == suffix; 166 StringPiece TrimSuffix(StringPiece str, StringPiece suffix) { 167 ssize_t size_diff = str.size() - suffix.size(); 168 if (size_diff < 0 || str.substr(size_diff) != suffix)
|
/build/soong/common/ |
module.go | 357 suffix := "" 359 suffix = "-soong" 364 Outputs: []string{ctx.ModuleName() + suffix}, 649 suffix := "" 651 suffix = "-soong" 657 Outputs: []string{"checkbuild" + suffix},
|
/external/boringssl/src/crypto/x509/ |
by_dir.c | 75 int suffix; member in struct:lookup_dir_hashes_st 350 k = hent->suffix; 435 /* If a CRL, update the last file suffix added for this */ 459 hent->suffix = k; 468 else if (hent->suffix < k) 469 hent->suffix = k;
|
/external/google-breakpad/src/testing/gtest/include/gtest/internal/ |
gtest-string.h | 260 // Returns true iff this String ends with the given suffix. *Any* 261 // String is considered to end with a NULL or empty suffix. 262 bool EndsWith(const char* suffix) const; 264 // Returns true iff this String ends with the given suffix, not considering 265 // case. Any String is considered to end with a NULL or empty suffix. 266 bool EndsWithCaseInsensitive(const char* suffix) const;
|
/external/jsoncpp/ |
makerelease.py | 75 def svn_join_url( base_url, suffix ): 78 if suffix.startswith('/'): 79 suffix = suffix[1:] 80 return base_url + suffix 179 path = write_tempfile( batch, suffix='.sftp', text=True )
|
/external/llvm/lib/Transforms/IPO/ |
FunctionImport.cpp | 100 // We need to suffix internal function calls imported from other modules, 101 // prepare the suffix ahead of time. 102 std::string Suffix; 104 Suffix = 122 auto Renamed = (ImportedName + Suffix).str(); 215 // to remove the suffix added during the renaming to recover the original
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
gtest-string.h | 260 // Returns true iff this String ends with the given suffix. *Any* 261 // String is considered to end with a NULL or empty suffix. 262 bool EndsWith(const char* suffix) const; 264 // Returns true iff this String ends with the given suffix, not considering 265 // case. Any String is considered to end with a NULL or empty suffix. 266 bool EndsWithCaseInsensitive(const char* suffix) const;
|
/external/mesa3d/src/gtest/include/gtest/internal/ |
gtest-string.h | 260 // Returns true iff this String ends with the given suffix. *Any* 261 // String is considered to end with a NULL or empty suffix. 262 bool EndsWith(const char* suffix) const; 264 // Returns true iff this String ends with the given suffix, not considering 265 // case. Any String is considered to end with a NULL or empty suffix. 266 bool EndsWithCaseInsensitive(const char* suffix) const;
|
/external/protobuf/gtest/include/gtest/internal/ |
gtest-string.h | 260 // Returns true iff this String ends with the given suffix. *Any* 261 // String is considered to end with a NULL or empty suffix. 262 bool EndsWith(const char* suffix) const; 264 // Returns true iff this String ends with the given suffix, not considering 265 // case. Any String is considered to end with a NULL or empty suffix. 266 bool EndsWithCaseInsensitive(const char* suffix) const;
|
/external/skia/src/core/ |
SkBitmapProcState_matrixProcs.cpp | 60 #define MAKENAME(suffix) ClampX_ClampY ## suffix 97 #define MAKENAME(suffix) RepeatX_RepeatY ## suffix 125 #define MAKENAME(suffix) GeneralXY ## suffix
|
/system/extras/ksmutils/ |
ksminfo.c | 345 char suffix[13]; local 374 index = snprintf(suffix, sizeof(suffix), ":%zu", 377 index += snprintf(suffix + index, sizeof(suffix) - index, "[%d]", 380 printf("%-12s", suffix);
|
/external/fio/exp/ |
expression-parser.y | 61 %token <v> SUFFIX 63 %right SUFFIX 129 | expression SUFFIX {
|
/external/gtest/include/gtest/internal/ |
gtest-string.h | 142 // Returns true iff the given string ends with the given suffix, ignoring 143 // case. Any string is considered to end with an empty suffix. 145 const std::string& str, const std::string& suffix);
|
/external/libxml2/test/relaxng/ |
OpenDocumentSub.rng | 119 <ref name="common-num-format-prefix-suffix-attlist"/> 161 <define name="common-num-format-prefix-suffix-attlist" combine="interleave"> 168 <attribute name="style:num-suffix">
|
/external/mesa3d/src/mesa/drivers/dri/common/xmlpool/ |
gen_xmlpool.py | 113 suffix = '' 116 suffix = ' \\' 121 print matches[0].expand (r'\1' + lang + r'\3"' + text + r'"\7') + suffix
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/internal/ |
gtest-string.h | 142 // Returns true iff the given string ends with the given suffix, ignoring 143 // case. Any string is considered to end with an empty suffix. 145 const std::string& str, const std::string& suffix);
|