Home
last modified time | relevance | path

Searched refs:new_string (Results 1 – 2 of 2) sorted by relevance

/art/runtime/
Dstring_builder_append.cc49 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint8_t* data) in RemainingSpace() argument
51 DCHECK(new_string->IsCompressed()); in RemainingSpace()
52 DCHECK_GE(new_string->GetLength(), data - new_string->GetValueCompressed()); in RemainingSpace()
53 return new_string->GetLength() - (data - new_string->GetValueCompressed()); in RemainingSpace()
56 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint16_t* data) in RemainingSpace() argument
58 DCHECK(!new_string->IsCompressed()); in RemainingSpace()
59 DCHECK_GE(new_string->GetLength(), data - new_string->GetValue()); in RemainingSpace()
60 return new_string->GetLength() - (data - new_string->GetValue()); in RemainingSpace()
64 static CharType* AppendLiteral(ObjPtr<mirror::String> new_string,
69 static CharType* AppendString(ObjPtr<mirror::String> new_string,
[all …]
/art/runtime/mirror/
Dstring.cc87 ObjPtr<String> new_string = obj->AsString(); in DoReplace() local
92 uint8_t* out = new_string->value_compressed_; in DoReplace()
103 uint16_t* out = new_string->value_; in DoReplace()
126 ObjPtr<String> new_string = obj->AsString(); in DoConcat() local
128 uint8_t* new_value = new_string->GetValueCompressed(); in DoConcat()
132 uint16_t* new_value = new_string->GetValue(); in DoConcat()
166 ObjPtr<String> new_string = obj->AsString(); in AllocFromUtf16() local
168 uint8_t* value = new_string->GetValueCompressed(); in AllocFromUtf16()
173 memcpy(new_string->GetValue(), utf16_data_in, utf16_length * sizeof(uint16_t)); in AllocFromUtf16()
203 ObjPtr<String> new_string = obj->AsString(); in AllocFromModifiedUtf8() local
[all …]