Home
last modified time | relevance | path

Searched refs:StringPiece (Results 1 – 25 of 31) sorted by relevance

12

/art/runtime/base/
Dstringpiece.cc27 char StringPiece::operator[](size_type i) const { in operator []()
33 void StringPiece::CopyToString(std::string* target) const { in CopyToString()
37 StringPiece::size_type StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy()
43 StringPiece::size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find()
52 int StringPiece::compare(const StringPiece& x) const { in compare()
61 StringPiece::size_type StringPiece::find(char c, size_type pos) const { in find()
69 StringPiece::size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind()
79 StringPiece::size_type StringPiece::rfind(char c, size_type pos) const { in rfind()
90 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr()
93 return StringPiece(ptr_ + pos, n); in substr()
[all …]
Dstringpiece.h32 class StringPiece {
50 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function
51 StringPiece(const char* str) // NOLINT implicit constructor desired in StringPiece() function
53 StringPiece(const std::string& str) // NOLINT implicit constructor desired in StringPiece() function
55 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } in StringPiece() function
104 int compare(const StringPiece& x) const;
122 bool starts_with(const StringPiece& x) const { in starts_with()
128 bool ends_with(const StringPiece& x) const { in ends_with()
144 size_type find(const StringPiece& s, size_type pos = 0) const;
146 size_type rfind(const StringPiece& s, size_type pos = npos) const;
[all …]
/art/runtime/mirror/
Dclass.cc296 bool Class::IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2) { in IsInSamePackage()
302 if (descriptor1.find('/', i) != StringPiece::npos || in IsInSamePackage()
303 descriptor2.find('/', i) != StringPiece::npos) { in IsInSamePackage()
348 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const StringPiece& signature, in FindInterfaceMethod()
367 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const Signature& signature, in FindInterfaceMethod()
406 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature, in FindDeclaredDirectMethod()
416 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature, in FindDeclaredDirectMethod()
438 ArtMethod* Class::FindDirectMethod(const StringPiece& name, const StringPiece& signature, in FindDirectMethod()
449 ArtMethod* Class::FindDirectMethod(const StringPiece& name, const Signature& signature, in FindDirectMethod()
471 ArtMethod* Class::FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature, in FindDeclaredVirtualMethod()
[all …]
Dclass.h46 class StringPiece; variable
557 static bool IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2);
810 ArtMethod* FindInterfaceMethod(const StringPiece& name, const StringPiece& signature,
814 ArtMethod* FindInterfaceMethod(const StringPiece& name, const Signature& signature,
822 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature,
826 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature,
834 ArtMethod* FindDirectMethod(const StringPiece& name, const StringPiece& signature,
838 ArtMethod* FindDirectMethod(const StringPiece& name, const Signature& signature,
846 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature,
850 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const Signature& signature,
[all …]
Dstring.h29 class StringPiece; variable
129 bool Equals(const StringPiece& modified_utf8)
Dstring.cc190 bool String::Equals(const StringPiece& modified_utf8) { in Equals()
/art/runtime/
Dcommon_throws.h31 class StringPiece; variable
152 void ThrowNoSuchFieldError(const StringPiece& scope, mirror::Class* c,
153 const StringPiece& type, const StringPiece& name)
156 void ThrowNoSuchFieldException(mirror::Class* c, const StringPiece& name)
161 void ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name,
Ddex_file-inl.h73 StringPiece lhs_shorty(lhs_shorty_data, lhs_shorty_len);
79 StringPiece rhs_shorty(rhs_shorty_data, rhs_shorty_len);
93 if (lhs_shorty.find('L', 1) != StringPiece::npos) {
Dcommon_throws.cc290 void ThrowNoSuchFieldError(const StringPiece& scope, mirror::Class* c, in ThrowNoSuchFieldError()
291 const StringPiece& type, const StringPiece& name) { in ThrowNoSuchFieldError()
299 void ThrowNoSuchFieldException(mirror::Class* c, const StringPiece& name) { in ThrowNoSuchFieldException()
308 void ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name, in ThrowNoSuchMethodError()
Doat_file.cc496 StringPiece key(oat_dex_file->GetDexFileLocation()); in Setup()
499 StringPiece canonical_key(oat_dex_file->GetCanonicalDexFileLocation()); in Setup()
540 StringPiece key(dex_location); in GetOatDexFile()
559 StringPiece canonical_key(dex_canonical_location); in GetOatDexFile()
568 StringPiece key_copy(string_cache_.back()); in GetOatDexFile()
Ddex_file.h50 class StringPiece; variable
737 bool CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx,
742 const Signature CreateSignature(const StringPiece& signature) const;
1103 bool operator==(const StringPiece& rhs) const;
Ddex_file.cc696 bool DexFile::CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx, in CreateTypeList()
749 const Signature DexFile::CreateSignature(const StringPiece& signature) const { in CreateSignature()
1074 bool Signature::operator==(const StringPiece& rhs) const { in operator ==()
1078 StringPiece tail(rhs); in operator ==()
1086 StringPiece param(dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_)); in operator ==()
Dart_method.h37 class StringPiece; variable
215 static size_t NumArgRegisters(const StringPiece& shorty);
Doat_file.h335 typedef AllocationTrackingSafeMap<StringPiece, const OatDexFile*, kAllocatorTagOatFile> Table;
Dart_method.cc81 size_t ArtMethod::NumArgRegisters(const StringPiece& shorty) { in NumArgRegisters()
Djava_vm_ext.cc434 StringPiece class_name(method->GetDeclaringClassDescriptor()); in ShouldTrace()
Dclass_linker_test.cc424 StringPiece field_name(field->GetName()); in Check()
433 StringPiece field_name(field->GetName()); in Check()
/art/cmdline/
Dcmdline.h140 const StringPiece option(argv[i]); in Parse()
144 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in Parse()
281 virtual ParseStatus ParseCustom(const StringPiece& option ATTRIBUTE_UNUSED, in ParseCustom()
/art/test/004-StackWalk/
Dstack_walk_jni.cc40 StringPiece m_name(m->GetName()); in VisitFrame()
/art/compiler/jit/
Djit_compiler.cc90 for (const StringPiece option : Runtime::Current()->GetCompilerOptions()) { in JitCompiler()
94 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in JitCompiler()
102 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in JitCompiler()
/art/runtime/verifier/
Dreg_type_cache.h35 class StringPiece; variable
149 bool MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise)
Dreg_type_cache.cc126 bool RegTypeCache::MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) { in MatchDescriptor()
165 StringPiece descriptor_sp(descriptor); in From()
/art/dex2oat/
Ddex2oat.cc594 const StringPiece option(argv[i]); in ParseArgs()
662 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in ParseArgs()
673 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in ParseArgs()
680 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in ParseArgs()
696 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in ParseArgs()
/art/runtime/interpreter/
Dinterpreter.cc29 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty, in InterpreterJni()
/art/imgdiag/
Dimgdiag.cc867 virtual ParseStatus ParseCustom(const StringPiece& option, in ParseCustom()

12