Lines Matching refs:String

62         Logger::E(String::TAG, "Size %d is illegal.", size);  in Allocate()
65 if (size > String::MAX_SIZE) { in Allocate()
66 Logger::E(String::TAG, "The string is too large to alloc."); in Allocate()
72 Logger::E(String::TAG, "Fail to malloc %lu bytes memory", size); in Allocate()
89 Logger::E(String::TAG, "The refCount is error in AddRef."); in AddRef()
104 Logger::E(String::TAG, "The refCount is error in Release."); in Release()
109 const char* String::TAG = "String";
111 String::String(const char* string) in String() function in OHOS::Idl::String
118 Logger::E(String::TAG, "The String::String is error in strcpy_s."); in String()
124 String::String(const char* string, size_t length) in String() function in OHOS::Idl::String
144 String::String(const String& other) in String() function in OHOS::Idl::String
150 String::String(String&& other) in String() function in OHOS::Idl::String
156 String::String(int size) in String() function in OHOS::Idl::String
164 String::~String() in ~String()
169 int String::GetLength() const in GetLength()
178 char String::operator[](int index) const in operator []()
186 bool String::Equals(const char* string) const
202 bool String::Equals(const String& other) const
217 int String::GetHashCode() const
232 int String::IndexOf(char c, int fromIndex) const
255 int String::IndexOf(const char* string, int fromIndex) const
271 int String::IndexOf(const String& other, int fromIndex) const
287 int String::LastIndexOf(char c, int fromIndex) const
308 int String::LastIndexOf(const char* string, int fromIndex) const
323 int String::LastIndexOf(const String& other, int fromIndex) const
338 int String::LastIndexOfInternal(const char* string, int fromIndex) const
374 bool String::StartsWith(const char* string) const
392 bool String::StartsWith(const String& other) const
410 bool String::EndsWith(const char* string) const
429 bool String::EndsWith(const String& other) const
448 String String::ToLowerCase() const
457 String newStr(string_); in __anon5e4de09e1002()
467 String String::ToUpperCase() const
476 String newStr(string_); in __anon5e4de09e1102()
486 String String::Substring(int begin) const
489 return String(); in __anon5e4de09e1202()
492 return String(string_ + begin); in __anon5e4de09e1202()
495 String String::Substring(int begin, int end) const
498 return String(); in __anon5e4de09e1302()
501 return String(string_ + begin, end - begin); in __anon5e4de09e1302()
504 String String::Replace(char oldChar, char newChar) const
515 String newStr(string_); in __anon5e4de09e1402()
526 String String::Replace(const char* target, const char* replacement) const
550 String String::Replace(const String& target, const String& replacement) const
574 String& String::operator=(const char* string)
587 Logger::E(String::TAG, "The operator= is error in strcpy_s.");
593 String& String::operator=(const String& other) in operator =()
605 String& String::operator=(String&& other) in operator =()
613 String String::operator+=(const char* string) const in operator +=()
621 String newString(newSize); in operator +=()
625 Logger::E(String::TAG, "The operator+= char* is error in memcpy_s."); in operator +=()
629 Logger::E(String::TAG, "The operator+= char* is error in strcpy_s."); in operator +=()
635 String String::operator+=(const String& other) const in operator +=()
643 String newString(newSize); in operator +=()
648 Logger::E(String::TAG, "The operator+= is error in strcpy_s."); in operator +=()
654 String String::Format(const char* format, ...) in Format()
663 String string; in Format()
670 string = String(len); in Format()