| /prebuilts/go/darwin-x86/src/strings/ |
| strings_amd64.go | 26 // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. 27 func Index(s, substr string) int { 28 n := len(substr) 33 return IndexByte(s, substr[0]) 35 if substr == s { 42 // Use brute force when s and substr both are small 44 return indexShortStr(s, substr) 46 c := substr[0] 60 if s[i:i+n] == substr { [all...] |
| strings_generic.go | 12 // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. 13 func Index(s, substr string) int { 14 n := len(substr) 19 return IndexByte(s, substr[0]) 21 if substr == s { 28 c := substr[0] 40 if s[i:i+n] == substr { 47 j := indexRabinKarp(s[i:], substr) 57 // Count counts the number of non-overlapping instances of substr in s [all...] |
| strings_s390x.go | 27 // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. 28 func Index(s, substr string) int { 29 n := len(substr) 34 return IndexByte(s, substr[0]) 36 if substr == s { 43 // Use brute force when s and substr both are small 45 return indexShortStr(s, substr) 47 c := substr[0] 61 if s[i:i+n] == substr { [all...] |
| /prebuilts/go/linux-x86/src/strings/ |
| strings_amd64.go | 26 // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. 27 func Index(s, substr string) int { 28 n := len(substr) 33 return IndexByte(s, substr[0]) 35 if substr == s { 42 // Use brute force when s and substr both are small 44 return indexShortStr(s, substr) 46 c := substr[0] 60 if s[i:i+n] == substr { [all...] |
| strings_generic.go | 12 // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. 13 func Index(s, substr string) int { 14 n := len(substr) 19 return IndexByte(s, substr[0]) 21 if substr == s { 28 c := substr[0] 40 if s[i:i+n] == substr { 47 j := indexRabinKarp(s[i:], substr) 57 // Count counts the number of non-overlapping instances of substr in s [all...] |
| strings_s390x.go | 27 // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. 28 func Index(s, substr string) int { 29 n := len(substr) 34 return IndexByte(s, substr[0]) 36 if substr == s { 43 // Use brute force when s and substr both are small 45 return indexShortStr(s, substr) 47 c := substr[0] 61 if s[i:i+n] == substr { [all...] |
| /prebuilts/misc/common/swig/include/2.0.11/ruby/ |
| std_string.i | 6 AUTODOC(substr, "Return a portion of the String");
|
| /external/tensorflow/tensorflow/python/kernel_tests/ |
| substr_op_test.py | 15 """Tests for Substr op from string_ops.""" 36 substr_op = string_ops.substr(test_string, position, length) 38 substr = substr_op.eval() 39 self.assertAllEqual(substr, expected_value) 47 substr_op = string_ops.substr(test_string, position, length) 49 substr = substr_op.eval() 50 self.assertAllEqual(substr, expected_value) 58 substr_op = string_ops.substr(test_string, position, length) 60 substr = substr_op.eval() 61 self.assertAllEqual(substr, expected_value [all...] |
| /external/syslinux/gpxe/src/util/ |
| swapdevids.pl | 18 $t = substr($$dataref, $loc1, 1); 19 substr($$dataref, $loc1, 1) = substr($$dataref, $loc2, 1); 20 substr($$dataref, $loc2, 1) = $t; 27 return (sprintf "%02x %02x %02x", unpack('C3', substr($$dataref, $loc, 3))); 37 substr($data, 0, 2) eq "\x55\xAA" or die "$file: Not a boot ROM image\n"; 38 ($pci, $pnp) = unpack('v2', substr($data, 0x18, 4)); 40 (substr($data, $pci, 4) eq 'PCIR' and substr($data, $pnp, 4) eq '$PnP')
|
| makerom.pl | 33 if (substr($$romref, 0, 2) ne "\x55\xaa"); 34 my $size = ord(substr($$romref, 2, 1)) * 512; 50 return (0) if (substr($$romref, $pos, $len) ne ("\xFF" x $len)); 51 substr($$romref, $pos, $len) = $s; 59 $pci_hdr_offset = unpack('v', substr($$romref, PCI_PTR_LOC, 2)); 60 $pnp_hdr_offset = unpack('v', substr($$romref, PNP_PTR_LOC, 2)); 66 or substr($$romref, $pci_hdr_offset, 4) ne 'PCIR' 67 or substr($$romref, $pnp_hdr_offset, 4) ne '$PnP') { 77 $pci_vendor_id = unpack('v', substr($$romref, $pci_hdr_offset+PCI_VEND_ID_OFF, 2)); 78 $pci_device_id = unpack('v', substr($$romref, $pci_hdr_offset+PCI_DEV_ID_OFF, 2)) [all...] |
| catrom.pl | 25 unless substr ( $romdata, 0, 2 ) eq "\x55\xAA"; 27 ( my $checklen ) = unpack ( 'C', substr ( $romdata, 2, 1 ) ); 32 ( my $pci ) = unpack ( 'v', substr ( $romdata, PCI_OFF, 2 ) ); 36 unless substr ( $romdata, $pci, 4 ) eq "PCIR"; 39 unpack ( 'C', substr ( $romdata, $pci + INDICATOR_OFF, 1 ) ); 44 substr ( $romdata, $pci + INDICATOR_OFF, 1 ) = pack ( 'C', $indicator );
|
| modrom.pl | 33 if (substr($$romref, 0, 2) ne "\x55\xaa"); 34 my $size = ord(substr($$romref, 2, 1)) * 512; 50 return (0) if (substr($$romref, $pos, $len) ne ("\xFF" x $len)); 51 substr($$romref, $pos, $len) = $s; 59 $pci_hdr_offset = unpack('v', substr($$romref, PCI_PTR_LOC, 2)); 60 $pnp_hdr_offset = unpack('v', substr($$romref, PNP_PTR_LOC, 2)); 66 or substr($$romref, $pci_hdr_offset, 4) ne 'PCIR' 67 or substr($$romref, $pnp_hdr_offset, 4) ne '$PnP') { 77 $pci_vendor_id = unpack('v', substr($$romref, $pci_hdr_offset+PCI_VEND_ID_OFF, 2)); 78 $pci_device_id = unpack('v', substr($$romref, $pci_hdr_offset+PCI_DEV_ID_OFF, 2)) [all...] |
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
| DateTimeStyleSet.java | 50 protected void handleParseValue(FieldsSet inheritFrom, int field, String substr) { 51 if(substr.startsWith(kRELATIVE_)) { 52 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr.substring(kRELATIVE_.length())); 57 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr); 61 protected int handleParseName(FieldsSet inheritFrom, String name, String substr) {
|
| /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
| DateTimeStyleSet.java | 47 protected void handleParseValue(FieldsSet inheritFrom, int field, String substr) { 48 if(substr.startsWith(kRELATIVE_)) { 49 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr.substring(kRELATIVE_.length())); 54 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr); 58 protected int handleParseName(FieldsSet inheritFrom, String name, String substr) {
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
| test_bigmem.py | 39 SUBSTR = ' abc def ghi'
40 s = '-' * size + SUBSTR
42 self.assertEqual(caps[-len(SUBSTR):],
43 SUBSTR.capitalize())
44 self.assertEqual(caps.lstrip('-'), SUBSTR)
48 SUBSTR = ' abc def ghi'
49 s = SUBSTR.center(size)
51 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2
54 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR)
55 self.assertEqual(s.strip(), SUBSTR.strip()) [all...] |
| /external/python/cpython2/Lib/test/ |
| test_bigmem.py | 44 SUBSTR = ' abc def ghi' 45 s = '-' * size + SUBSTR 47 self.assertEqual(caps[-len(SUBSTR):], 48 SUBSTR.capitalize()) 49 self.assertEqual(caps.lstrip('-'), SUBSTR) 53 SUBSTR = ' abc def ghi' 54 s = SUBSTR.center(size) 56 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2 59 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR) 60 self.assertEqual(s.strip(), SUBSTR.strip() [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
| test_bigmem.py | 39 SUBSTR = ' abc def ghi' 40 s = '-' * size + SUBSTR 42 self.assertEqual(caps[-len(SUBSTR):], 43 SUBSTR.capitalize()) 44 self.assertEqual(caps.lstrip('-'), SUBSTR) 48 SUBSTR = ' abc def ghi' 49 s = SUBSTR.center(size) 51 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2 54 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR) 55 self.assertEqual(s.strip(), SUBSTR.strip() [all...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/test/ |
| test_bigmem.py | 39 SUBSTR = ' abc def ghi' 40 s = '-' * size + SUBSTR 42 self.assertEqual(caps[-len(SUBSTR):], 43 SUBSTR.capitalize()) 44 self.assertEqual(caps.lstrip('-'), SUBSTR) 48 SUBSTR = ' abc def ghi' 49 s = SUBSTR.center(size) 51 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2 54 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR) 55 self.assertEqual(s.strip(), SUBSTR.strip() [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
| test_bigmem.py | 39 SUBSTR = ' abc def ghi' 40 s = '-' * size + SUBSTR 42 self.assertEqual(caps[-len(SUBSTR):], 43 SUBSTR.capitalize()) 44 self.assertEqual(caps.lstrip('-'), SUBSTR) 48 SUBSTR = ' abc def ghi' 49 s = SUBSTR.center(size) 51 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2 54 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR) 55 self.assertEqual(s.strip(), SUBSTR.strip() [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
| test_bigmem.py | 39 SUBSTR = ' abc def ghi' 40 s = '-' * size + SUBSTR 42 self.assertEqual(caps[-len(SUBSTR):], 43 SUBSTR.capitalize()) 44 self.assertEqual(caps.lstrip('-'), SUBSTR) 48 SUBSTR = ' abc def ghi' 49 s = SUBSTR.center(size) 51 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2 54 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR) 55 self.assertEqual(s.strip(), SUBSTR.strip() [all...] |
| /external/freetype/builds/atari/ |
| deflinejoiner.awk | 73 part_str = substr( logical_line, c0 + 1 ) 78 part_str = substr( logical_line, c0 + 1, c1 - c0 + 1 ) 84 part_str = substr( logical_line, c0 + 1 ) 92 tail = substr( logical_line, pos ) 95 logical_line = substr( logical_line, 0, pos - 1 ) tail 117 part_str = substr( logical_line, pos, break_pos[i] - pos + 1 ) 121 tail = substr( logical_line, pos + removed_length ) 122 logical_line = substr( logical_line, 0, pos - 1 ) tail 144 if ( substr( logical_line, j, 2 ) ~ /[ \t][ \t]/ ) 146 else if ( substr( logical_line, j, 1 ) == "(" [all...] |
| /external/e2fsprogs/lib/ss/ |
| ct_c.awk | 17 subr = substr($0, 6, length($0)-5) 21 help = substr($0, 6, length($0)-5) 25 cmd = substr($0, 6, length($0)-5) 31 opt = substr($0, 6, length($0)-5) 56 error = substr($0, 8, length($0)-7)
|
| /art/test/020-string/src/ |
| Main.java | 72 String subStr; 74 subStr = baseStr.substring(5, baseStr.length() - 4); 75 System.out.println("subStr is '" + subStr + "'"); 79 subStr.indexOf('T') + ":" + 80 subStr.indexOf('u') + ":" + 82 subStr.indexOf('y') + ":" + 83 subStr.indexOf('d') + ":" + 85 subStr.indexOf('x', 0) + ":" + 86 subStr.indexOf('x', -1) + ":" [all...] |
| /external/protobuf/src/google/protobuf/util/internal/ |
| json_objectwriter_test.cc | 67 EXPECT_EQ("{}", output_.substr(0, out_stream_->ByteCount())); 78 output_.substr(0, out_stream_->ByteCount())); 84 EXPECT_EQ("[]", output_.substr(0, out_stream_->ByteCount())); 95 output_.substr(0, out_stream_->ByteCount())); 106 output_.substr(0, out_stream_->ByteCount())); 117 output_.substr(0, out_stream_->ByteCount())); 128 output_.substr(0, out_stream_->ByteCount())); 138 EXPECT_EQ("[[\"value\"]]", output_.substr(0, out_stream_->ByteCount())); 168 output_.substr(0, out_stream_->ByteCount())); 179 output_.substr(0, out_stream_->ByteCount())) [all...] |
| /external/python/cpython3/Lib/test/ |
| test_bigmem.py | 73 SUBSTR = self.from_latin1(' abc def ghi') 74 s = _('-') * size + SUBSTR 76 self.assertEqual(caps[-len(SUBSTR):], 77 SUBSTR.capitalize()) 78 self.assertEqual(caps.lstrip(_('-')), SUBSTR) 82 SUBSTR = self.from_latin1(' abc def ghi') 83 s = SUBSTR.center(size) 85 lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2 88 self.assertEqual(s[lpadsize:-rpadsize], SUBSTR) 89 self.assertEqual(s.strip(), SUBSTR.strip() [all...] |