/external/tensorflow/tensorflow/core/lib/strings/ |
D | strcat_test.cc | 31 namespace strings { namespace 49 answer = tensorflow::strings::StrCat(s, us); in TEST() 51 answer = tensorflow::strings::StrCat(i, ui); in TEST() 53 answer = tensorflow::strings::StrCat(l, ul); in TEST() 55 answer = tensorflow::strings::StrCat(ll, ull); in TEST() 57 answer = tensorflow::strings::StrCat(ptrdiff, size); in TEST() 59 answer = tensorflow::strings::StrCat(ssize, intptr); in TEST() 61 answer = tensorflow::strings::StrCat(uintptr, 0); in TEST() 77 result = tensorflow::strings::StrCat(false, true, 2, 3); in TEST() 80 result = tensorflow::strings::StrCat(-1); in TEST() [all …]
|
/external/tensorflow/tensorflow/cc/framework/ |
D | cc_op_gen.cc | 119 strings::StrAppend(&ret, indent, "///\n"); in MakeComment() 121 strings::StrAppend(&ret, indent, "/// ", in MakeComment() 130 return strings::StrCat("\"", str_util::CEscape(str), "\""); in PrintString() 140 if (d > 0) strings::StrAppend(&ret, ", "); in PrintTensorShape() 141 strings::StrAppend(&ret, shape.dim_size(d)); in PrintTensorShape() 143 strings::StrAppend(&ret, "}"); in PrintTensorShape() 151 if (i > 0) strings::StrAppend(&ret, ", "); in PrintArray() 152 strings::StrAppend(&ret, array[i]); in PrintArray() 187 if (i > 0) strings::StrAppend(&ret, " "); in PrintTensor() 188 strings::StrAppend(&ret, str_util::CEscape(t.flat<string>()(i))); in PrintTensor() [all …]
|
/external/tensorflow/tensorflow/python/eager/ |
D | python_eager_op_gen.cc | 49 const string var = strings::StrCat("_attr_", attr_name); in AttrVarName() 57 strings::StrAppend(result, indentation, in AddInferredAttr() 63 if (l.size() == 1) return strings::StrCat("(", l.front(), ",)"); in VectorToTuple() 67 strings::StrAppend(&ret, ", "); in VectorToTuple() 69 strings::StrAppend(&ret, l[i]); in VectorToTuple() 71 strings::StrAppend(&ret, ")"); in VectorToTuple() 79 strings::StrAppend(result, prefix, var, " = "); in Unflatten() 80 if (i > 0) strings::StrAppend(result, var, "[:", i, "] + "); in Unflatten() 84 strings::StrAppend(result, "[", var, "[:", output_sizes[i], "]] + ", in Unflatten() 87 strings::StrAppend(result, "[", var, "[", i, ":", i, " + ", in Unflatten() [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_op_gen.cc | 79 if (IsPythonReserved(s)) return strings::StrCat(s, "_"); in AvoidPythonReserved() 95 result = strings::StrCat(Spaces(initial), line, "\n"); in Indent() 99 strings::StrAppend(&result, "\n"); in Indent() 101 strings::StrAppend(&result, Spaces(rest), line, "\n"); in Indent() 114 strings::StrAppend(dest, "\n", append); in AppendWithinWidth() 116 strings::StrAppend(dest, " ", append); in AppendWithinWidth() 135 return strings::StrCat("mutable `", PythonDataTypeString(dtype), "`"); in TypeString() 137 return strings::StrCat("`", PythonDataTypeString(dtype), "`"); in TypeString() 144 if (!ret.empty()) strings::StrAppend(&ret, ", "); in TypeListString() 147 strings::StrAppend(&ret, PythonDataTypeString(RemoveRefType(dtype)), in TypeListString() [all …]
|
/external/syslinux/gpxe/src/arch/i386/interface/pcbios/ |
D | ibft.c | 161 static int ibft_alloc_string ( struct ibft_string_block *strings, in ibft_alloc_string() argument 166 dest = ( ( ( char * ) strings->table ) + strings->offset ); in ibft_alloc_string() 167 remaining = ( strings->table->acpi.length - strings->offset ); in ibft_alloc_string() 171 string->offset = strings->offset; in ibft_alloc_string() 173 strings->offset += ( len + 1 ); in ibft_alloc_string() 185 static int ibft_set_string ( struct ibft_string_block *strings, in ibft_set_string() argument 193 if ( ( rc = ibft_alloc_string ( strings, string, in ibft_set_string() 196 dest = ( ( ( char * ) strings->table ) + string->offset ); in ibft_set_string() 210 static int ibft_set_string_option ( struct ibft_string_block *strings, in ibft_set_string_option() argument 224 if ( ( rc = ibft_alloc_string ( strings, string, len ) ) != 0 ) in ibft_set_string_option() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue73/ |
D | SetAsSequenceTest.java | 87 Set<String> strings = (Set<String>) yaml.load(doc); in testLoadRootSet() local 89 assertEquals(3, strings.size()); in testLoadRootSet() 90 assertEquals(HashSet.class, strings.getClass()); in testLoadRootSet() 91 assertTrue(strings.contains("aaa")); in testLoadRootSet() 92 assertTrue(strings.contains("bbb")); in testLoadRootSet() 93 assertTrue(strings.contains("ccc")); in testLoadRootSet() 100 Set<String> strings = (Set<String>) yaml.load(doc); in testLoadRootSet2() local 102 assertEquals(3, strings.size()); in testLoadRootSet2() 103 assertEquals(LinkedHashSet.class, strings.getClass()); in testLoadRootSet2() 104 assertTrue(strings.contains("aaa")); in testLoadRootSet2() [all …]
|
/external/icu/icu4c/source/common/ |
D | bytestriebuilder.cpp | 40 void setTo(StringPiece s, int32_t val, CharString &strings, UErrorCode &errorCode); 42 StringPiece getString(const CharString &strings) const { in getString() 46 length=(uint8_t)strings[offset++]; in getString() 49 length=((int32_t)(uint8_t)strings[offset]<<8)|(uint8_t)strings[offset+1]; in getString() 52 return StringPiece(strings.data()+offset, length); in getString() 54 int32_t getStringLength(const CharString &strings) const { in getStringLength() 57 return (uint8_t)strings[offset]; in getStringLength() 60 return ((int32_t)(uint8_t)strings[offset]<<8)|(uint8_t)strings[offset+1]; in getStringLength() 64 char charAt(int32_t index, const CharString &strings) const { return data(strings)[index]; } in charAt() 68 int32_t compareStringTo(const BytesTrieElement &o, const CharString &strings) const; [all …]
|
D | ucharstriebuilder.cpp | 40 void setTo(const UnicodeString &s, int32_t val, UnicodeString &strings, UErrorCode &errorCode); 42 UnicodeString getString(const UnicodeString &strings) const { in getString() 43 int32_t length=strings[stringOffset]; in getString() 44 return strings.tempSubString(stringOffset+1, length); in getString() 46 int32_t getStringLength(const UnicodeString &strings) const { in getStringLength() 47 return strings[stringOffset]; in getStringLength() 50 UChar charAt(int32_t index, const UnicodeString &strings) const { in charAt() 51 return strings[stringOffset+1+index]; in charAt() 56 int32_t compareStringTo(const UCharsTrieElement &o, const UnicodeString &strings) const; 67 UnicodeString &strings, UErrorCode &errorCode) { in setTo() argument [all …]
|
D | uniset.cpp | 149 bufferCapacity(0), patLen(0), pat(NULL), strings(NULL), stringSpan(NULL), in UnicodeSet() 176 bufferCapacity(0), patLen(0), pat(NULL), strings(NULL), stringSpan(NULL), in UnicodeSet() 203 patLen(0), pat(NULL), strings(NULL), stringSpan(NULL), in UnicodeSet() 227 patLen(0), pat(NULL), strings(NULL), stringSpan(NULL), in UnicodeSet() 240 if (strings != NULL && o.strings != NULL) { in UnicodeSet() 241 strings->assign(*o.strings, cloneUnicodeString, status); in UnicodeSet() 266 delete strings; in ~UnicodeSet() 301 if (strings != NULL && o.strings != NULL) { in operator =() 302 strings->assign(*o.strings, cloneUnicodeString, ec); in operator =() 310 stringSpan = new UnicodeSetStringSpan(*o.stringSpan, *strings); in operator =() [all …]
|
/external/llvm/soong/ |
D | tblgen.go | 81 "includes": strings.Join(includes, " "), 94 case strings.HasSuffix(out, "GenRegisterInfo.inc"): 96 case strings.HasSuffix(out, "GenInstrInfo.inc"): 98 case strings.HasSuffix(out, "GenAsmWriter.inc"): 100 case strings.HasSuffix(out, "GenAsmWriter1.inc"): 102 case strings.HasSuffix(out, "GenAsmMatcher.inc"): 104 case strings.HasSuffix(out, "GenCodeEmitter.inc"): 106 case strings.HasSuffix(out, "GenMCCodeEmitter.inc"): 108 case strings.HasSuffix(out, "GenMCPseudoLowering.inc"): 110 case strings.HasSuffix(out, "GenDAGISel.inc"): [all …]
|
/external/emma/core/java12/com/vladium/util/ |
D | Strings.java | 33 public static String toListForm (final String [] strings, final char delimiter) in toListForm() argument 35 if (strings == null) return null; in toListForm() 36 if (strings.length == 0) return ""; in toListForm() 39 for (int i = 0, iLimit = strings.length; i < iLimit; ++ i) in toListForm() 42 s.append (strings [i]); in toListForm() 48 public static String [] removeDuplicates (final String [] strings, final boolean removeNull) in removeDuplicates() argument 50 if (strings == null) return strings; in removeDuplicates() 52 final int length = strings.length; in removeDuplicates() 53 if (length == 0) return strings; in removeDuplicates() 60 final String s = strings [i]; in removeDuplicates() [all …]
|
/external/boringssl/src/util/ |
D | doc.go | 81 return strings.HasPrefix(line, commentStart) || strings.HasPrefix(line, lineComment) 93 if strings.HasPrefix(rest[0], commentStart) { 95 } else if !strings.HasPrefix(rest[0], lineComment) { 104 i := strings.Index(commentParagraph, commentEnd) 120 if !strings.HasPrefix(line, " *") { 124 } else if !strings.HasPrefix(line, "//") { 133 if strings.HasPrefix(line, " ") { 212 i := strings.Index(s, "\n") 220 for strings.HasPrefix(decl, "#if") || strings.HasPrefix(decl, "#elif") { 224 if strings.HasPrefix(decl, "typedef ") { [all …]
|
/external/skqp/infra/bots/ |
D | gen_tasks.go | 122 if strings.Contains(jobName, "Bookmaker") { 130 ec = strings.Split(val, "_") 148 } else if strings.Contains(task_os, "ChromeOS") { 154 } else if strings.Contains(task_os, "Win") { 156 } else if strings.Contains(task_os, "Ubuntu") || strings.Contains(task_os, "Debian") { 167 jobNameMap["extra_config"] = strings.Join(ec, "_") 222 if strings.Contains(parts["os"], "Android") || strings.Contains(parts["os"], "Chromecast") { 253 } else if strings.Contains(parts["os"], "iOS") { 294 if strings.Contains(parts["os"], "Win") { 323 } else if strings.Contains(parts["os"], "Ubuntu") || strings.Contains(parts["os"], "Debian") { [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | string_split_op_test.py | 33 strings = ["pigs on the wing", "animals"] 36 tokens = string_ops.string_split(strings) 43 strings = ["hello", "hola", b"\xF0\x9F\x98\x8E"] # Last string is U+1F60E 46 tokens = string_ops.string_split(strings, delimiter="") 61 strings = [" hello ", "", "world "] 64 tokens = string_ops.string_split(strings) 71 strings = ["hello|world", "hello world"] 75 ValueError, string_ops.string_split, strings, delimiter=["|", ""]) 78 ValueError, string_ops.string_split, strings, delimiter=["a"]) 80 tokens = string_ops.string_split(strings, delimiter="|") [all …]
|
/external/skia/infra/bots/ |
D | gen_tasks.go | 122 if strings.Contains(jobName, "Bookmaker") { 130 ec = strings.Split(val, "_") 148 } else if strings.Contains(task_os, "ChromeOS") { 154 } else if strings.Contains(task_os, "Win") { 156 } else if strings.Contains(task_os, "Ubuntu") || strings.Contains(task_os, "Debian") { 167 jobNameMap["extra_config"] = strings.Join(ec, "_") 222 if strings.Contains(parts["os"], "Android") || strings.Contains(parts["os"], "Chromecast") { 252 } else if strings.Contains(parts["os"], "iOS") { 293 if strings.Contains(parts["os"], "Win") { 320 } else if strings.Contains(parts["os"], "Ubuntu") || strings.Contains(parts["os"], "Debian") { [all …]
|
/external/fonttools/Lib/fontTools/ |
D | cffLib.py | 33 self.strings = IndexedStrings(file) 35 self.topDictIndex.strings = self.strings 55 strings = IndexedStrings() 61 writer.add(fontNames.getCompiler(strings, None)) 62 topCompiler = self.topDictIndex.getCompiler(strings, None) 64 writer.add(strings.getCompiler()) 65 writer.add(self.GlobalSubrs.getCompiler(strings, None)) 72 for child in topCompiler.getChildren(strings): 179 def __init__(self, items, strings, parent): argument 180 self.items = self.getItems(items, strings) [all …]
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_tensor.h | 60 CHECK(strings::safe_strtod(sstream.str().c_str(), &double_val)); in AddValue() 62 formatted_str_ += strings::Printf( in AddValue() 66 CHECK(strings::safe_strto64(sstream.str().c_str(), &int64_val)); in AddValue() 68 formatted_str_ += strings::Printf( in AddValue() 74 strings::StrCat(formatted_str_, "'", in AddValue() 95 CHECK(strings::safe_strtod(sstream.str().c_str(), &double_val)); in BuildOutput() 97 formatted_str_ += strings::Printf( in BuildOutput() 101 CHECK(strings::safe_strto64(sstream.str().c_str(), &int64_val)); in BuildOutput() 103 formatted_str_ += strings::Printf( in BuildOutput() 109 strings::StrCat(formatted_str_, "'", in BuildOutput() [all …]
|
D | tfprof_utils.cc | 34 return strings::Printf("%lld", n); in FormatNumber() 36 return strings::Printf("%.2fk", n / 1000.0); in FormatNumber() 38 return strings::Printf("%.2fm", n / 1000000.0); in FormatNumber() 40 return strings::Printf("%.2fb", n / 1000000000.0); in FormatNumber() 46 return strings::Printf("%lldus", micros); in FormatTime() 48 return strings::Printf("%.2fms", micros / 1000.0); in FormatTime() 50 return strings::Printf("%.2fsec", micros / 1000000.0); in FormatTime() 56 return strings::Printf("%lldB", bytes); in FormatMemory() 58 return strings::Printf("%.2fKB", bytes / 1000.0); in FormatMemory() 60 return strings::Printf("%.2fMB", bytes / 1000000.0); in FormatMemory() [all …]
|
/external/tensorflow/tensorflow/core/util/ |
D | saved_tensor_slice_util.cc | 31 tensorflow::strings::OrderedCode::WriteNumIncreasing(&buffer, 0); in EncodeTensorNameSlice() 32 tensorflow::strings::OrderedCode::WriteString(&buffer, name); in EncodeTensorNameSlice() 33 tensorflow::strings::OrderedCode::WriteNumIncreasing(&buffer, slice.dims()); in EncodeTensorNameSlice() 37 tensorflow::strings::OrderedCode::WriteSignedNumIncreasing(&buffer, in EncodeTensorNameSlice() 39 tensorflow::strings::OrderedCode::WriteSignedNumIncreasing(&buffer, in EncodeTensorNameSlice() 49 if (!tensorflow::strings::OrderedCode::ReadNumIncreasing(&src, &x)) { in DecodeTensorNameSlice() 56 if (!tensorflow::strings::OrderedCode::ReadString(&src, name)) { in DecodeTensorNameSlice() 59 if (!tensorflow::strings::OrderedCode::ReadNumIncreasing(&src, &x)) { in DecodeTensorNameSlice() 73 if (!tensorflow::strings::OrderedCode::ReadSignedNumIncreasing(&src, in DecodeTensorNameSlice() 77 if (!tensorflow::strings::OrderedCode::ReadSignedNumIncreasing(&src, in DecodeTensorNameSlice() [all …]
|
D | equal_graph_def.cc | 54 *diff = strings::StrCat("Did not find expected node '", in EqualRepeatedNodeDef() 70 strings::StrCat("Found unexpected node '", in EqualRepeatedNodeDef() 99 if (i > 0) strings::StrAppend(&ret, ", "); in JoinStringField() 100 strings::StrAppend(&ret, f.Get(i)); in JoinStringField() 111 *diff = strings::StrCat("Actual node name '", actual.name(), in EqualNodeDef() 119 *diff = strings::StrCat("Node named '", actual.name(), "' has op '", in EqualNodeDef() 128 *diff = strings::StrCat("Node named '", actual.name(), "' has device '", in EqualNodeDef() 137 *diff = strings::StrCat("Node named '", actual.name(), "' has inputs '", in EqualNodeDef() 153 actual.input(i) != strings::StrCat(expected.input(i), ":0") && in EqualNodeDef() 154 strings::StrCat(actual.input(i), ":0") != expected.input(i)) { in EqualNodeDef() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSortedSetTest.java | 733 String[] strings = NUMBER_NAMES.toArray(new String[0]); in testHeadSetInclusive() local 734 ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(strings); in testHeadSetInclusive() 735 Arrays.sort(strings); in testHeadSetInclusive() 736 for (int i = 0; i < strings.length; i++) { in testHeadSetInclusive() 737 assertThat(set.headSet(strings[i], true)) in testHeadSetInclusive() 743 String[] strings = NUMBER_NAMES.toArray(new String[0]); in testHeadSetExclusive() local 744 ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(strings); in testHeadSetExclusive() 745 Arrays.sort(strings); in testHeadSetExclusive() 746 for (int i = 0; i < strings.length; i++) { in testHeadSetExclusive() 747 assertThat(set.headSet(strings[i], false)).has().exactlyAs( in testHeadSetExclusive() [all …]
|
/external/llvm/tools/llvm-go/ |
D | llvm-go.go | 86 outstr = strings.TrimSuffix(outstr, "\n") 87 outstr = strings.Replace(outstr, "\n", " ", -1) 110 if strings.HasPrefix(a, "-tags=") { 125 fmt.Println(strings.Join(components, " ")) 175 newgopath := strings.Join(newgopathlist, string(filepath.ListSeparator)) 193 if !strings.HasPrefix(v, "CC=") && 194 !strings.HasPrefix(v, "CXX=") && 195 !strings.HasPrefix(v, "CGO_CPPFLAGS=") && 196 !strings.HasPrefix(v, "CGO_CXXFLAGS=") && 197 !strings.HasPrefix(v, "CGO_LDFLAGS=") && [all …]
|
/external/freetype/src/sfnt/ |
D | ttbdf.c | 55 bdf->strings = NULL; in tt_face_free_bdf_props() 87 FT_ULong strings = FT_NEXT_ULONG ( p ); in tt_face_load_bdf_props() local 93 strings < 8 || in tt_face_load_bdf_props() 94 ( strings - 8 ) / 4 < num_strikes || in tt_face_load_bdf_props() 95 strings + 1 > length ) in tt_face_load_bdf_props() 101 bdf->strings = bdf->table + strings; in tt_face_load_bdf_props() 102 bdf->strings_size = length - strings; in tt_face_load_bdf_props() 122 if ( strike > bdf->strings ) in tt_face_load_bdf_props() 207 (const char*)bdf->strings + name_offset, in tt_face_find_bdf_prop() 216 ft_memchr( bdf->strings + value, 0, bdf->strings_size ) ) in tt_face_find_bdf_prop() [all …]
|
/external/curl/tests/libtest/ |
D | lib576.c | 46 if(finfo->strings.perm) { in chunk_bgn() 47 printf("Permissions: %s", finfo->strings.perm); in chunk_bgn() 53 if(finfo->strings.user) in chunk_bgn() 54 printf("User: %s\n", finfo->strings.user); in chunk_bgn() 55 if(finfo->strings.group) in chunk_bgn() 56 printf("Group: %s\n", finfo->strings.group); in chunk_bgn() 57 if(finfo->strings.time) in chunk_bgn() 58 printf("Time: %s\n", finfo->strings.time); in chunk_bgn() 69 printf("Target: %s\n", finfo->strings.target); in chunk_bgn()
|
/external/tensorflow/tensorflow/core/framework/ |
D | function.cc | 163 TF_RETURN_IF_ERROR(AddItem(strings::StrCat(arg_def.name(), ":", i), in BuildInputArgIndex() 168 strings::StrAppend(&name, "_", i); in BuildInputArgIndex() 197 strings::StrCat(node.name(), ":", node_sig->output_arg(i).name()); in BuildNodeOutputIndex() 202 AddItem(strings::StrCat(base_name, ":", j), in BuildNodeOutputIndex() 326 string name = strings::StrCat(ret_def.name(), "_RetVal"); in AddReturnNode() 328 strings::StrAppend(&name, "_", i); in AddReturnNode() 379 strings::StrCat("Duplicated ", item.is_func_arg ? "arg" : "ret", in AddItem() 391 return strings::StrCat("^", Name(node_index)); in Dep() 403 return strings::StrCat(Name(node_index), ":", output_index); in Name() 447 strings::StrAppend(&out, arg.name(), ":"); in Print() [all …]
|