/external/tensorflow/tensorflow/core/lib/strings/ |
D | strcat_test.cc | 30 namespace strings { namespace 48 answer = tensorflow::strings::StrCat(s, us); in TEST() 50 answer = tensorflow::strings::StrCat(i, ui); in TEST() 52 answer = tensorflow::strings::StrCat(l, ul); in TEST() 54 answer = tensorflow::strings::StrCat(ll, ull); in TEST() 56 answer = tensorflow::strings::StrCat(ptrdiff, size); in TEST() 58 answer = tensorflow::strings::StrCat(ssize, intptr); in TEST() 60 answer = tensorflow::strings::StrCat(uintptr, 0); in TEST() 76 result = tensorflow::strings::StrCat(false, true, 2, 3); in TEST() 79 result = tensorflow::strings::StrCat(-1); in TEST() [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_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 …]
|
D | python_op_gen_internal.cc | 110 if (IsPythonReserved(s)) return strings::StrCat(s, "_"); in AvoidPythonReserved() 126 result = strings::StrCat(Spaces(initial), line, "\n"); in Indent() 130 strings::StrAppend(&result, "\n"); in Indent() 132 strings::StrAppend(&result, Spaces(rest), line, "\n"); in Indent() 145 strings::StrAppend(dest, "\n", append); in AppendWithinWidth() 147 strings::StrAppend(dest, " ", append); in AppendWithinWidth() 166 return strings::StrCat("mutable `", PythonDataTypeString(dtype), "`"); in TypeString() 168 return strings::StrCat("`", PythonDataTypeString(dtype), "`"); in TypeString() 175 if (!ret.empty()) strings::StrAppend(&ret, ", "); in TypeListString() 178 strings::StrAppend(&ret, PythonDataTypeString(RemoveRefType(dtype)), in TypeListString() [all …]
|
/external/tensorflow/tensorflow/cc/framework/ |
D | cc_op_gen.cc | 120 strings::StrAppend(&ret, indent, "///\n"); in MakeComment() 122 strings::StrAppend(&ret, indent, "/// ", in MakeComment() 131 return strings::StrCat("\"", str_util::CEscape(str), "\""); in PrintString() 141 if (d > 0) strings::StrAppend(&ret, ", "); in PrintTensorShape() 142 strings::StrAppend(&ret, shape.dim_size(d)); in PrintTensorShape() 144 strings::StrAppend(&ret, "}"); in PrintTensorShape() 152 if (i > 0) strings::StrAppend(&ret, ", "); in PrintArray() 153 strings::StrAppend(&ret, array[i]); in PrintArray() 188 if (i > 0) strings::StrAppend(&ret, " "); in PrintTensor() 189 strings::StrAppend(&ret, str_util::CEscape(t.flat<string>()(i))); in PrintTensor() [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 …]
|
/external/skia/infra/bots/ |
D | gen_tasks.go | 251 return strings.Replace(string(j), "\\u003c", "<", -1) 261 if strings.Contains(name, "Win") { 363 if strings.Contains(jobName, "Bookmaker") { 369 ec = strings.Split(val, "_") 387 } else if strings.Contains(task_os, "ChromeOS") { 393 } else if strings.Contains(task_os, "Win") { 395 } else if strings.Contains(task_os, "Ubuntu") || strings.Contains(task_os, "Debian") { 397 } else if strings.Contains(task_os, "Mac") { 407 if strings.Contains(jobName, "PathKit") { 410 if strings.Contains(jobName, "CanvasKit") { [all …]
|
/external/skqp/infra/bots/ |
D | gen_tasks.go | 253 return strings.Replace(string(j), "\\u003c", "<", -1) 263 if strings.Contains(name, "Win") { 364 if strings.Contains(jobName, "Bookmaker") { 370 ec = strings.Split(val, "_") 388 } else if strings.Contains(task_os, "ChromeOS") { 394 } else if strings.Contains(task_os, "Win") { 396 } else if strings.Contains(task_os, "Ubuntu") || strings.Contains(task_os, "Debian") { 406 if strings.Contains(jobName, "PathKit") { 409 if strings.Contains(jobName, "CanvasKit") { 418 jobNameMap["extra_config"] = strings.Join(ec, "_") [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/tensorflow/tensorflow/core/framework/ |
D | collective.cc | 51 return strings::StrCat("CollGroupParams {group_key=", group_key, in ToString() 88 string v = strings::StrCat("CollInstanceParams { instance_key=", instance_key, in ToString() 92 strings::StrAppend(&v, d, ","); in ToString() 94 strings::StrAppend(&v, "} task_names={"); in ToString() 96 strings::StrAppend(&v, n, ", "); in ToString() 98 strings::StrAppend(&v, "} num_devices_per_task={"); in ToString() 100 strings::StrAppend(&v, dpt.first, ": ", dpt.second, ", "); in ToString() 102 strings::StrAppend(&v, "}, collective_name=", impl_details.collective_name, in ToString() 105 strings::StrAppend(&v, "}, subdiv_offsets={"); in ToString() 107 strings::StrAppend(&v, d, ","); in ToString() [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/tensorflow/tensorflow/python/kernel_tests/ |
D | string_split_op_test.py | 34 strings = ["pigs on the wing", "animals"] 37 tokens = string_ops.string_split(strings) 45 strings = ["hello", "hola", b"\xF0\x9F\x98\x8E"] # Last string is U+1F60E 48 tokens = string_ops.string_split(strings, delimiter="") 63 strings = ["", " a", "b ", " c", " ", " d ", " e", "f ", " g ", " "] 66 tokens = string_ops.string_split(strings) 75 strings = ["", " a", "b ", " c", " ", " d ", ". e", "f .", " .g. ", " ."] 78 tokens = string_ops.string_split(strings, delimiter=" .") 88 strings = ["hello|world", "hello world"] 92 ValueError, string_ops.string_split, strings, delimiter=["|", ""]) [all …]
|
D | unicode_transcode_op_test.py | 36 strings = [[b"a", b"abc"], [b"ABC", b"DEF"]] 40 strings, 47 self.assertAllEqual(values, strings) 50 strings, 57 self.assertAllEqual(values, strings) 60 strings, 67 self.assertAllEqual(values, strings) 70 strings = [b"\x00a\x00b\x20\xAC", b"\xD8\x01\xDC\x37"] # U+10437 71 expected = [s.decode("UTF-16-BE").encode("UTF-8") for s in strings] 75 strings, [all …]
|
/external/boringssl/src/util/ |
D | doc.go | 82 return strings.HasPrefix(line, commentStart) || strings.HasPrefix(line, lineComment) 86 if strings.HasPrefix(line, "A ") { 88 } else if strings.HasPrefix(line, "An ") { 91 idx := strings.IndexAny(line, " ,") 107 if strings.HasPrefix(rest[0], commentStart) { 109 } else if !strings.HasPrefix(rest[0], lineComment) { 118 i := strings.Index(commentParagraph, commentEnd) 134 if !strings.HasPrefix(line, " *") { 138 } else if !strings.HasPrefix(line, "//") { 147 if strings.HasPrefix(line, " ") { [all …]
|
/external/syzkaller/pkg/email/ |
D | patch.go | 13 s := bufio.NewScanner(strings.NewReader(text)) 19 if strings.HasPrefix(ln, "--- a/") || strings.HasPrefix(ln, "--- /dev/null") { 33 if strings.HasPrefix(ln, "diff --git") { 37 if strings.HasPrefix(ln, "Subject: ") { 45 if strings.HasPrefix(ln, " ") { 52 if strings.Contains(strings.ToLower(title), "[patch") { 53 pos := strings.IndexByte(title, ']') 60 title = strings.TrimSpace(title)
|
/external/tensorflow/tensorflow/js/ops/ |
D | ts_op_gen.cc | 103 strings::StrAppend(&result_, "\n"); in Code() 161 strings::StrAppend(&inputs, input_op_args_[*iter].op_def_arg.name()); in InputForAttr() 168 strings::StrAppend(&result_, "export function ", api_def_.endpoint(0).name(), in AddMethodSignature() 176 strings::StrAppend(&result_, ", "); in AddMethodSignature() 181 strings::StrAppend(&result_, op_def_arg.name(), ": "); in AddMethodSignature() 183 strings::StrAppend(&result_, "tfc.Tensor[]"); in AddMethodSignature() 185 strings::StrAppend(&result_, "tfc.Tensor"); in AddMethodSignature() 190 strings::StrAppend(&result_, "): tfc.Tensor {\n"); in AddMethodSignature() 192 strings::StrAppend(&result_, "): tfc.Tensor[] {\n"); in AddMethodSignature() 197 strings::StrAppend(&result_, " const opAttrs = [\n"); in AddOpAttrs() [all …]
|
/external/tensorflow/tensorflow/core/platform/ |
D | tensor_coding.cc | 36 void EncodeStringList(const string* strings, int64 n, string* out) { in EncodeStringList() argument 39 core::PutVarint32(out, strings[i].size()); in EncodeStringList() 42 out->append(strings[i]); in EncodeStringList() 46 bool DecodeStringList(const string& src, string* strings, int64 n) { in DecodeStringList() argument 58 string* data = strings; in DecodeStringList() 84 strings::StrAppend(&rest_, serialized_message); in Append() 89 strings::StrAppend(&rest_, s); in Append() 92 void Finalize() override { strings::StrAppend(out_, rest_); } in Finalize() 147 void EncodeStringList(const string* strings, int64 n, Cord* out) { in EncodeStringList() argument 150 ::strings::CordAppendVarint(strings[i].size(), out); in EncodeStringList() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-go/ |
D | llvm-go.go | 85 outstr = strings.TrimSuffix(outstr, "\n") 86 outstr = strings.Replace(outstr, "\n", " ", -1) 109 if strings.HasPrefix(a, "-tags=") { 124 fmt.Println(strings.Join(components, " ")) 179 newgopath := strings.Join(newgopathlist, string(filepath.ListSeparator)) 197 if !strings.HasPrefix(v, "CC=") && 198 !strings.HasPrefix(v, "CXX=") && 199 !strings.HasPrefix(v, "CGO_CPPFLAGS=") && 200 !strings.HasPrefix(v, "CGO_CXXFLAGS=") && 201 !strings.HasPrefix(v, "CGO_LDFLAGS=") && [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/kernels/data/ |
D | stats_utils.cc | 36 return strings::StrCat(prefix, kDelimiter, kExecutionTime); in ExecutionTimeHistogramName() 40 return strings::StrCat(prefix, kDelimiter, kThreadUtilization); in ThreadUtilizationScalarName() 44 return strings::StrCat(prefix, kDelimiter, kBufferSize); in BufferSizeScalarName() 48 return strings::StrCat(prefix, kDelimiter, kBufferCapacity); in BufferCapacityScalarName() 52 return strings::StrCat(prefix, kDelimiter, kBufferUtilization); in BufferUtilizationHistogramName() 56 return strings::StrCat(prefix, kDelimiter, kFilteredElements); in FilterdElementsScalarName() 60 return strings::StrCat(prefix, kDelimiter, kDroppedElements); in DroppedElementsScalarName() 64 return strings::StrCat(prefix, kDelimiter, kFeaturesCount); in FeatureHistogramName() 68 return strings::StrCat(prefix, kDelimiter, kFeatureValuesCount); in FeatureValueHistogramName()
|
/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 …]
|
/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 …]
|