Home
last modified time | relevance | path

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

12

/art/runtime/base/
Dstringpiece.cc24 void StringPiece::CopyToString(std::string* target) const { in CopyToString()
28 int StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy()
34 StringPiece::size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find()
44 int StringPiece::compare(const StringPiece& x) const { in compare()
53 StringPiece::size_type StringPiece::find(char c, size_type pos) const { in find()
61 StringPiece::size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind()
71 StringPiece::size_type StringPiece::rfind(char c, size_type pos) const { in rfind()
82 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr()
85 return StringPiece(ptr_ + pos, n); in substr()
88 const StringPiece::size_type StringPiece::npos = size_type(-1);
[all …]
Dstringpiece.h39 class StringPiece {
48 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function
49 StringPiece(const char* str) // NOLINT in StringPiece() function
51 StringPiece(const std::string& str) // NOLINT in StringPiece() function
53 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() function
95 int compare(const StringPiece& x) const;
113 bool starts_with(const StringPiece& x) const { in starts_with()
119 bool ends_with(const StringPiece& x) const { in ends_with()
150 size_type find(const StringPiece& s, size_type pos = 0) const;
152 size_type rfind(const StringPiece& s, size_type pos = npos) const;
[all …]
/art/runtime/mirror/
Dclass.cc306 bool Class::IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2) { in IsInSamePackage()
311 if (descriptor1.find('/', i) != StringPiece::npos || in IsInSamePackage()
312 descriptor2.find('/', i) != StringPiece::npos) { in IsInSamePackage()
361 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const StringPiece& signature) { in FindInterfaceMethod()
379 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const Signature& signature) { in FindInterfaceMethod()
415 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature) { in FindDeclaredDirectMethod()
425 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature) { in FindDeclaredDirectMethod()
447 ArtMethod* Class::FindDirectMethod(const StringPiece& name, const StringPiece& signature) { in FindDirectMethod()
457 ArtMethod* Class::FindDirectMethod(const StringPiece& name, const Signature& signature) { in FindDirectMethod()
477 ArtMethod* Class::FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature) { in FindDeclaredVirtualMethod()
[all …]
Dclass.h73 class StringPiece; variable
535 static bool IsInSamePackage(const StringPiece& descriptor1, const StringPiece& descriptor2);
754 ArtMethod* FindInterfaceMethod(const StringPiece& name, const StringPiece& signature)
757 ArtMethod* FindInterfaceMethod(const StringPiece& name, const Signature& signature)
763 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature)
766 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature)
772 ArtMethod* FindDirectMethod(const StringPiece& name, const StringPiece& signature)
775 ArtMethod* FindDirectMethod(const StringPiece& name, const Signature& signature)
781 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature)
784 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const Signature& signature)
[all …]
Dstring.h30 class StringPiece; variable
94 bool Equals(const StringPiece& modified_utf8)
Dstring.cc181 bool String::Equals(const StringPiece& modified_utf8) { in Equals()
Dart_method.h37 class StringPiece; variable
195 static size_t NumArgRegisters(const StringPiece& shorty);
Dart_method.cc90 size_t ArtMethod::NumArgRegisters(const StringPiece& shorty) { in NumArgRegisters()
/art/runtime/base/unix_file/
Dstring_file.h48 void Assign(const art::StringPiece& new_data);
49 const art::StringPiece ToStringPiece() const;
Dstring_file.cc90 void StringFile::Assign(const art::StringPiece &new_data) { in Assign()
94 const art::StringPiece StringFile::ToStringPiece() const { in ToStringPiece()
/art/runtime/
Dcommon_throws.h31 class StringPiece; variable
149 void ThrowNoSuchFieldError(const StringPiece& scope, mirror::Class* c,
150 const StringPiece& type, const StringPiece& name)
155 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) {
Doat_file.cc344 StringPiece key(oat_dex_file->GetDexFileLocation()); in Setup()
347 StringPiece canonical_key(oat_dex_file->GetCanonicalDexFileLocation()); in Setup()
380 StringPiece key(dex_location); in GetOatDexFile()
399 StringPiece canonical_key(dex_canonical_location); in GetOatDexFile()
408 StringPiece key_copy(string_cache_.back()); in GetOatDexFile()
Dcommon_throws.cc295 void ThrowNoSuchFieldError(const StringPiece& scope, mirror::Class* c, in ThrowNoSuchFieldError()
296 const StringPiece& type, const StringPiece& name) in ThrowNoSuchFieldError()
307 void ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name, in ThrowNoSuchMethodError()
Ddex_file.h49 class StringPiece; variable
720 bool CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx,
725 const Signature CreateSignature(const StringPiece& signature) const;
1071 bool operator==(const StringPiece& rhs) const;
Ddex_file.cc644 bool DexFile::CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx, in CreateTypeList()
697 const Signature DexFile::CreateSignature(const StringPiece& signature) const { in CreateSignature()
1011 bool Signature::operator==(const StringPiece& rhs) const { in operator ==()
1015 StringPiece tail(rhs); in operator ==()
1023 StringPiece param(dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_)); in operator ==()
Doat_file.h347 typedef AllocationTrackingSafeMap<StringPiece, const OatDexFile*, kAllocatorTagOatFile> Table;
Dparsed_options.cc300 const StringPiece& value = options[i].first; in Parse()
Dclass_linker_test.cc417 StringPiece field_name(field->GetName()); in Check()
426 StringPiece field_name(field->GetName()); in Check()
/art/runtime/verifier/
Dreg_type_cache.h35 class StringPiece; variable
156 bool MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise)
Dreg_type_cache.cc125 bool RegTypeCache::MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) { in MatchDescriptor()
163 StringPiece descriptor_sp(descriptor); in From()
/art/test/004-StackWalk/
Dstack_walk_jni.cc65 StringPiece m_name(m->GetName()); in VisitFrame()
/art/dex2oat/
Ddex2oat.cc912 const StringPiece option(argv[i]); in dex2oat()
984 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in dex2oat()
997 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in dex2oat()
1000 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in dex2oat()
/art/runtime/interpreter/
Dinterpreter.cc132 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty, in InterpreterJni()
/art/oatdump/
Doatdump.cc1716 const StringPiece option(argv[i]); in oatdump()
1724 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in oatdump()

12