Lines Matching refs:string_
114 string_ = SharedData::ToString(SharedData::Allocate(strlen(string)));
115 if (string_ != nullptr) {
116 errno_t ret = strcpy_s(string_, strlen(string) + 1, string);
131 string_ = SharedData::ToString(sharedData);
132 if (string_ != nullptr) {
133 errno_t ret = memcpy_s(string_, length + 1, string, length);
135 string_[length] = '\0';
138 string_ = nullptr;
146 string_ = other.string_;
147 SharedData::AddRef(string_);
152 string_ = other.string_;
153 other.string_ = nullptr;
158 string_ = SharedData::ToString(SharedData::Allocate(size));
159 if (string_ != nullptr) {
160 (void)memset_s(string_, size + 1, 0, size + 1);
166 SharedData::Release(string_);
171 if (string_ == nullptr) {
175 return SharedData::GetHeader(string_)->shareDataSize;
183 return string_[index];
188 if (string_ == nullptr && string == nullptr) {
192 if (string != nullptr && string_ != nullptr) {
196 return strcmp(string, string_) == 0;
204 if (string_ == nullptr && other.string_ == nullptr) {
208 if (string_ != nullptr && other.string_ != nullptr) {
212 return strcmp(string_, other.string_) == 0;
223 const char* string = string_;
244 char* p = string_ + fromIndex;
245 char* end = string_ + GetLength();
248 return p - string_;
267 char* c = strstr(string_ + fromIndex, string);
268 return c != nullptr ? c - string_ : -1;
283 char* c = strstr(string_ + fromIndex, other.string_);
284 return c != nullptr ? c - string_ : -1;
298 char* p = string_ + fromIndex;
299 while (p != string_) {
301 return p - string_;
354 while (i >= min && string_[i] != stringLastChar) {
365 if (string_[j--] != string[k--]) {
376 if (string == nullptr || string_ == nullptr) {
380 if (string[0] == '\0' && string_[0] == '\0') {
389 return memcmp(string_, string, count) == 0;
394 if (other.string_ == nullptr || string_ == nullptr) {
398 if (other.string_[0] == '\0' && string_[0] == '\0') {
407 return memcmp(string_, other.string_, count) == 0;
412 if (string == nullptr || string_ == nullptr) {
426 return memcmp(string_ + len - count, string, count) == 0;
431 if (other.string_ == nullptr || string_ == nullptr) {
435 if (other.string_[0] == '\0') {
445 return memcmp(string_ + len - count, other.string_, count) == 0;
456 if (isupper(string_[i])) {
457 String newStr(string_);
459 newStr.string_[j] = tolower(newStr.string_[j]);
475 if (islower(string_[i])) {
476 String newStr(string_);
478 newStr.string_[j] = toupper(newStr.string_[j]);
492 return String(string_ + begin);
501 return String(string_ + begin, end - begin);
512 if (string_[i] != oldChar) {
515 String newStr(string_);
517 if (newStr.string_[j] == oldChar) {
518 newStr.string_[j] = newChar;
576 SharedData::Release(string_);
579 string_ = nullptr;
583 string_ = SharedData::ToString(SharedData::Allocate(strlen(string)));
584 if (string_ != nullptr) {
585 errno_t ret = strcpy_s(string_, strlen(string) + 1, string);
595 if (string_ == other.string_) {
599 SharedData::Release(string_);
600 SharedData::AddRef(other.string_);
601 string_ = other.string_;
607 SharedData::Release(string_);
608 string_ = other.string_;
609 other.string_ = nullptr;
622 if (newString.string_ != nullptr) {
623 errno_t retMem = memcpy_s(newString.string_, newSize + 1, string_, thisSize);
627 errno_t ret = strcpy_s(newString.string_ + thisSize, newSize + 1 - thisSize, string);
644 if (newString.string_ != nullptr) {
645 (void)memcpy_s(newString.string_, newSize + 1, string_, thisSize);
646 errno_t ret = strcpy_s(newString.string_ + thisSize, newSize + 1 - thisSize, other.string_);
671 if (string.string_ == nullptr) {
677 if (vsnprintf_s(string.string_, len + 1, len, format, argsCopy) < 0) {