Lines Matching refs:new_string

51   static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint8_t* data)  in RemainingSpace()  argument
53 DCHECK(new_string->IsCompressed()); in RemainingSpace()
54 DCHECK_GE(new_string->GetLength(), data - new_string->GetValueCompressed()); in RemainingSpace()
55 return new_string->GetLength() - (data - new_string->GetValueCompressed()); in RemainingSpace()
58 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint16_t* data) in RemainingSpace() argument
60 DCHECK(!new_string->IsCompressed()); in RemainingSpace()
61 DCHECK_GE(new_string->GetLength(), data - new_string->GetValue()); in RemainingSpace()
62 return new_string->GetLength() - (data - new_string->GetValue()); in RemainingSpace()
66 CharType* AppendFpArg(ObjPtr<mirror::String> new_string,
71 static CharType* AppendLiteral(ObjPtr<mirror::String> new_string,
76 static CharType* AppendString(ObjPtr<mirror::String> new_string,
81 static CharType* AppendInt64(ObjPtr<mirror::String> new_string,
88 void StoreData(ObjPtr<mirror::String> new_string, CharType* data) const
164 inline CharType* StringBuilderAppend::Builder::AppendFpArg(ObjPtr<mirror::String> new_string, in AppendFpArg() argument
171 DCHECK_LE(length, RemainingSpace(new_string, data)); in AppendFpArg()
176 inline CharType* StringBuilderAppend::Builder::AppendLiteral(ObjPtr<mirror::String> new_string, in AppendLiteral() argument
185 DCHECK_LE(length, RemainingSpace(new_string, data)); in AppendLiteral()
193 inline CharType* StringBuilderAppend::Builder::AppendString(ObjPtr<mirror::String> new_string, in AppendString() argument
197 DCHECK_LE(length, RemainingSpace(new_string, data)); in AppendString()
214 inline CharType* StringBuilderAppend::Builder::AppendInt64(ObjPtr<mirror::String> new_string, in AppendInt64() argument
217 DCHECK_GE(RemainingSpace(new_string, data), Int64Length(value)); in AppendInt64()
423 inline void StringBuilderAppend::Builder::StoreData(ObjPtr<mirror::String> new_string, in StoreData() argument
437 data = AppendString(new_string, data, str); in StoreData()
439 data = AppendLiteral(new_string, data, kNull); in StoreData()
445 data = AppendLiteral(new_string, data, kTrue); in StoreData()
447 data = AppendLiteral(new_string, data, kFalse); in StoreData()
452 DCHECK_GE(RemainingSpace(new_string, data), 1u); in StoreData()
458 data = AppendInt64(new_string, data, static_cast<int32_t>(*current_arg)); in StoreData()
463 data = AppendInt64(new_string, data, *reinterpret_cast<const int64_t*>(current_arg)); in StoreData()
472 data = AppendFpArg(new_string, data, fp_arg_index); in StoreData()
490 DCHECK_EQ(RemainingSpace(new_string, data), 0u) << std::hex << format_; in StoreData()
495 ObjPtr<mirror::String> new_string = ObjPtr<mirror::String>::DownCast(obj); in operator ()() local
496 new_string->SetCount(length_with_flag_); in operator ()()
498 StoreData(new_string, new_string->GetValueCompressed()); in operator ()()
500 StoreData(new_string, new_string->GetValue()); in operator ()()