Home
last modified time | relevance | path

Searched refs:string_length (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Dstring_length_op_test.py32 lengths = string_ops.string_length(strings)
44 utf8_byte_lengths = string_ops.string_length(utf8_strings, unit="BYTE")
45 utf8_char_lengths = string_ops.string_length(
54 string_ops.string_length(utf8_strings, unit="XYZ")
61 lengths = string_ops.string_length(strings, "some_name")
/external/tensorflow/tensorflow/python/ops/
Dstring_ops.py369 def string_length(input, name=None, unit="BYTE"): function
370 return gen_string_ops.string_length(input, unit=unit, name=name)
376 return string_length(input, name, unit)
379 string_length.__doc__ = gen_string_ops.string_length.__doc__
/external/v8/src/runtime/
Druntime-strings.cc461 int string_length = string->length(); in JoinSparseArrayWithSeparator() local
468 String::WriteToFlat<Char>(string, &buffer[cursor], 0, string_length); in JoinSparseArrayWithSeparator()
497 int string_length = 0; in RUNTIME_FUNCTION() local
513 String::kMaxLength - length < string_length) { in RUNTIME_FUNCTION()
517 string_length += length; in RUNTIME_FUNCTION()
525 int remaining_length = String::kMaxLength - string_length; in RUNTIME_FUNCTION()
527 string_length += separator_length * (array_length - 1); in RUNTIME_FUNCTION()
548 ->NewRawOneByteString(string_length) in RUNTIME_FUNCTION()
553 Vector<uint8_t>(result->GetChars(), string_length)); in RUNTIME_FUNCTION()
557 ->NewRawTwoByteString(string_length) in RUNTIME_FUNCTION()
[all …]
Druntime-array.cc478 int string_length = in RUNTIME_FUNCTION() local
483 static_cast<uint32_t>(Max(string_length, backing_store_length)))); in RUNTIME_FUNCTION()
/external/v8/src/regexp/
Dregexp-utils.cc172 const uint64_t string_length = static_cast<uint64_t>(string->length()); in AdvanceStringIndex() local
173 if (unicode && index < string_length) { in AdvanceStringIndex()
175 if (first >= 0xD800 && first <= 0xDBFF && index + 1 < string_length) { in AdvanceStringIndex()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.cc116 const uint64 string_length = string_lengths[i]; in ReadStringTensor() local
119 buffer->resize(string_length); in ReadStringTensor()
122 buffered_file->ReadNBytes(string_length, &(*buffer)[0], &bytes_read)); in ReadStringTensor()
143 uint64 string_length = 0; in ReadVariantTensor() local
144 TF_RETURN_IF_ERROR(buffered_file->ReadVarint64(&string_length)); in ReadVariantTensor()
146 *actual_crc32c, reinterpret_cast<const char*>(&string_length), in ReadVariantTensor()
150 buffer.resize(string_length); in ReadVariantTensor()
153 buffered_file->ReadNBytes(string_length, &buffer[0], &bytes_read)); in ReadVariantTensor()
158 "buffer of size ", string_length, ". ", in ReadVariantTensor()
/external/libchrome/base/strings/
Dstring_util_unittest.cc406 const size_t string_length = arraysize(char_ascii) - 1; in TEST() local
408 for (size_t len = 0, max_len = string_length - offset; len < max_len; in TEST()
421 const size_t string_length = arraysize(char16_ascii) - 1; in TEST() local
423 for (size_t len = 0, max_len = string_length - offset; len < max_len; in TEST()
442 const size_t string_length = wchar_ascii.length(); in TEST() local
443 for (size_t len = 0; len < string_length; ++len) { in TEST()
/external/v8/src/builtins/
Dbuiltins-string-gen.cc1638 TNode<Smi> const string_length = LoadStringLengthAsSmi(receiver_string); in Generate() local
1655 Branch(SmiLessThanOrEqual(CAST(max_length), string_length), &dont_pad, in Generate()
1684 CSA_ASSERT(this, SmiGreaterThan(smi_max_length, string_length)); in Generate()
1685 TNode<Smi> const pad_length = SmiSub(smi_max_length, string_length); in Generate()
2022 TNode<IntPtrT> const string_length = LoadStringLengthAsWord(string); in TF_BUILTIN() local
2025 var_start = ConvertToRelativeIndex(context, start, string_length); in TF_BUILTIN()
2036 var_length = SmiTag(string_length); in TF_BUILTIN()
2054 IntPtrSub(string_length, var_start.value()); in TF_BUILTIN()
2081 var_result_length = IntPtrSub(string_length, var_start.value()); in TF_BUILTIN()
2245 TNode<IntPtrT> const string_length = LoadStringLengthAsWord(string); in Generate() local
[all …]
Dbuiltins-regexp-gen.cc306 Node* const string_length, String::Encoding encoding, in GetStringPointers() argument
320 IntPtrAdd(offset, string_length), kind, INTPTR_PARAMETERS); in GetStringPointers()
710 TNode<Smi> string_length = LoadStringLengthAsSmi(string); in RegExpPrototypeExecBodyWithoutResult() local
711 GotoIfNot(SmiLessThanOrEqual(CAST(var_lastindex.value()), string_length), in RegExpPrototypeExecBodyWithoutResult()
1817 TNode<IntPtrT> const string_length = LoadStringLengthAsWord(string); in AdvanceStringIndex() local
1819 GotoIfNot(IntPtrLessThan(untagged_plus_one, string_length), &out); in AdvanceStringIndex()
2353 TNode<Smi> const string_length = LoadStringLengthAsSmi(string); in RegExpPrototypeSplitBody() local
2359 Branch(SmiEqual(string_length, SmiZero()), &if_stringisempty, &next); in RegExpPrototypeSplitBody()
2413 Branch(SmiEqual(next_search_from, string_length), &push_suffix_and_out, in RegExpPrototypeSplitBody()
2441 Branch(SmiEqual(match_from, string_length), &push_suffix_and_out, &next); in RegExpPrototypeSplitBody()
[all …]
Dbuiltins-string-gen.h50 Node* start, Node* string_length);
Dbuiltins-regexp-gen.h61 Node* const last_index, Node* const string_length,
/external/v8/src/
Daccessors.h36 V(string_length, StringLength)
/external/libtextclassifier/utils/java/
Djni-cache.h43 jmethodID string_length = nullptr; member
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DPacket.java506 int string_length = this.getNextValueAsInt(); in getNextValueAsString() local
509 res = new String(data, reading_data_index, string_length, "UTF-8"); in getNextValueAsString()
513 reading_data_index = reading_data_index + string_length; in getNextValueAsString()
/external/libtextclassifier/utils/utf8/
Dunilib-javaicu.cc475 text_.get(), jni_cache_->string_length); in ApproximatelyMatches()
/external/ImageMagick/MagickCore/
Ddelegate.c869 #define ExtendInterpretText(string_length) \ in InterpretDelegateProperties() argument
872 size_t length=(string_length); \ in InterpretDelegateProperties()
Dproperty.c3392 #define ExtendInterpretText(string_length) \ in InterpretImageProperties() argument
3395 size_t length=(string_length); \ in InterpretImageProperties()
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_dispatch.py347 string_ops.string_length,
/external/Microsoft-GSL/include/gsl/
Dstring_span90 std::ptrdiff_t string_length(const CharT* str, std::ptrdiff_t n)
315 return {sz, details::string_length(sz, max)};
/external/elfutils/libdw/
Dknown-dwarf.h137 DWARF_ONE_KNOWN_DW_AT (string_length, DW_AT_string_length) \
/external/swiftshader/third_party/LLVM/bindings/ocaml/llvm/
Dllvm_ocaml.c651 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_string()
658 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_stringz()
/external/python/cpython2/Objects/
Dstringobject.c1016 string_length(PyStringObject *a) in string_length() function
1413 (lenfunc)string_length, /*sq_length*/
1424 (lenfunc)string_length,
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c835 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_string()
842 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_stringz()
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c918 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_string()
925 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_stringz()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DDwarf.def208 HANDLE_DW_AT(0x19, string_length, 2, DWARF)

12