Home
last modified time | relevance | path

Searched refs:old_c (Results 1 – 5 of 5) sorted by relevance

/aosp12/art/runtime/mirror/
H A Dstring.cc72 ObjPtr<String> String::DoReplace(Thread* self, Handle<String> src, uint16_t old_c, uint16_t new_c) { in DoReplace() argument
75 ? ContainsElement(ArrayRef<uint8_t>(src->value_compressed_, length), old_c) in DoReplace()
76 : ContainsElement(ArrayRef<uint16_t>(src->value_, length), old_c)); in DoReplace()
80 (src->IsCompressed() || (!IsASCII(old_c) && AllASCIIExcept(src->value_, length, old_c))); in DoReplace()
89 auto replace = [old_c, new_c](uint16_t c) { in DoReplace()
90 return dchecked_integral_cast<uint8_t>((old_c != c) ? c : new_c); in DoReplace()
100 auto replace = [old_c, new_c](uint16_t c) { in DoReplace()
101 return (old_c != c) ? c : new_c; in DoReplace()
H A Dstring.h118 static ObjPtr<String> DoReplace(Thread* self, Handle<String> src, uint16_t old_c, uint16_t new_c)
/aosp12/system/tools/aidl/
H A Daidl_checkapi.cpp145 for (const auto& old_c : older.GetConstantDeclarations()) { in are_compatible_constants() local
146 const auto found = new_constdecls.find(old_c->GetName()); in are_compatible_constants()
148 AIDL_ERROR(old_c) << "Removed constant declaration: " << older.GetCanonicalName() << "." in are_compatible_constants()
149 << old_c->GetName(); in are_compatible_constants()
155 compatible &= are_compatible_types(old_c->GetType(), new_c->GetType()); in are_compatible_constants()
157 const string old_value = old_c->GetValue().Literal(); in are_compatible_constants()
161 << old_c->GetName() << " from " << old_value << " to " << new_value << "."; in are_compatible_constants()
/aosp12/art/runtime/native/
H A Djava_lang_String.cc97 static jstring String_doReplace(JNIEnv* env, jobject java_this, jchar old_c, jchar new_c) { in String_doReplace() argument
101 ObjPtr<mirror::String> result = mirror::String::DoReplace(soa.Self(), string, old_c, new_c); in String_doReplace()
/aosp12/art/runtime/interpreter/
H A Dunstarted_runtime.cc1316 jchar old_c = shadow_frame->GetVReg(arg_offset + 1); in UnstartedStringDoReplace() local
1325 result->SetL(mirror::String::DoReplace(self, string, old_c, new_c)); in UnstartedStringDoReplace()