Home | History | Annotate | Download | only in mirror

Lines Matching defs:string

17 #include "string-inl.h"
27 #include "string-inl.h"
35 GcRoot<Class> String::java_lang_String_;
37 int32_t String::FastIndexOf(int32_t ch, int32_t start) {
55 void String::SetClass(Class* java_lang_String) {
62 void String::ResetClass() {
67 int String::ComputeHashCode() {
73 int32_t String::GetUtfLength() {
77 void String::SetCharAt(int32_t index, uint16_t c) {
82 String* String::AllocFromStrings(Thread* self, Handle<String> string, Handle<String> string2) {
83 int32_t length = string->GetLength();
87 String* new_string = Alloc<true>(self, length + length2, allocator_type, visitor);
92 memcpy(new_value, string->GetValue(), length * sizeof(uint16_t));
97 String* String::AllocFromUtf16(Thread* self, int32_t utf16_length, const uint16_t* utf16_data_in) {
101 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor);
102 if (UNLIKELY(string == nullptr)) {
105 uint16_t* array = string->GetValue();
107 return string;
110 String* String::AllocFromModifiedUtf8(Thread* self, const char* utf) {
117 String* String::AllocFromModifiedUtf8(Thread* self, int32_t utf16_length, const char* utf8_data_in) {
121 String* String::AllocFromModifiedUtf8(Thread* self, int32_t utf16_length,
125 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor);
126 if (UNLIKELY(string == nullptr)) {
129 uint16_t* utf16_data_out = string->GetValue();
131 return string;
134 bool String::Equals(String* that) {
156 bool String::Equals(const uint16_t* that_chars, int32_t that_offset, int32_t that_length) {
169 bool String::Equals(const char* modified_utf8) {
196 bool String::Equals(const StringPiece& modified_utf8) {
220 // Create a modified UTF-8 encoded std::string from a java/lang/String object.
221 std::string String::ToModifiedUtf8() {
224 std::string result(byte_count, static_cast<char>(0));
229 int32_t String::CompareTo(String* rhs) {
230 // Quick test for comparison of a string with itself.
231 String* lhs = this;
254 void String::VisitRoots(RootVisitor* visitor) {
258 CharArray* String::ToCharArray(Thread* self) {
260 Handle<String> string(hs.NewHandle(this));
263 memcpy(result->GetData(), string->GetValue(), string->GetLength() * sizeof(uint16_t));
270 void String::GetChars(int32_t start, int32_t end, Handle<CharArray> array, int32_t index) {