Lines Matching refs:s

112     static s32 CalculateLength(const Char* s, s32 maxLength)  in CalculateLength()  argument
116 if (!s[i]) in CalculateLength()
125 void CopyFrom(const T* s, s32 i = 0)
129 if (!*s)
134 this->m_Data[i] = *s++;
196 FixedLengthString(const T* s) in FixedLengthString() argument
198 if (s) in FixedLengthString()
202 CopyFrom(s); in FixedLengthString()
210 FixedLengthString(const FixedLengthString& s) in FixedLengthString() argument
214 AppendTail(s); in FixedLengthString()
263 const Char* s = str.GetString(); in AppendHead() local
275 std::memcpy(m_Buffer + MaxLength - totalSize, s, sizeof(Char) * length); in AppendHead()
286 std::memcpy(m_Data, s, length * sizeof(Char)); in AppendHead()
292 FixedLengthString& AppendHead(const Char* s) in AppendHead() argument
298 s32 length = CalculateLength(s, MaxLength - this->GetLength()); in AppendHead()
299 if (s[length]) in AppendHead()
309 std::memcpy(m_Buffer + MaxLength - totalSize, s, sizeof(Char) * length); in AppendHead()
320 std::memcpy(m_Data, s, length * sizeof(Char)); in AppendHead()
327 FixedLengthString& AppendTail(const FixedLengthString<Char, Length, Size>& s) in AppendTail() argument
329 if (!this->IsValid() || !s.IsValid()) in AppendTail()
339 SetLength(this->GetLength() + s.GetLength()); in AppendTail()
342 std::memcpy(p, s.GetString(), sizeof(Char) * s.GetLength()); in AppendTail()
348 FixedLengthString& AppendTail(const Char* s) in AppendTail() argument
358 CopyFrom(s, this->GetLength()); in AppendTail()
401 FixedLengthString& AppendTail(const Char2* s, size_t size) in AppendTail() argument
417 p[i] = s[i]; in AppendTail()
425 FixedLengthString& AppendTail(const Char2 s[Size]) in AppendTail()
427 return AppendTail(s, Size); in AppendTail()
459 FixedLengthString& operator+=(const Char2 s[Size]) { return AppendTail(s); }
541 void CopyFrom(const Char* s) in CopyFrom() argument
545 this->m_Buffer[i] = *s; in CopyFrom()
546 if (!*s++) in CopyFrom()
551 NN_TWARNING_(*s, "too long string."); in CopyFrom()
552 if (*s) in CopyFrom()
566 LightFixedLengthString(const Char* s) in LightFixedLengthString() argument
568 CopyFrom(s); in LightFixedLengthString()
571 LightFixedLengthString(const Char* s, size_t size) in LightFixedLengthString() argument
578 std::memcpy(this->m_Buffer, s, size); in LightFixedLengthString()
604 LightFixedLengthString& operator=(const Char* s)
606 CopyFrom(s);