Lines Matching refs:s1

187 ZyanStatus ZyanStringConcat(ZyanString* destination, const ZyanStringView* s1,  in ZyanStringConcat()  argument
190 return ZyanStringConcatEx(destination, s1, s2, capacity, ZyanAllocatorDefault(), in ZyanStringConcat()
196 ZyanStatus ZyanStringConcatEx(ZyanString* destination, const ZyanStringView* s1, in ZyanStringConcatEx() argument
200 if (!s1 || !s2 || !s1->string.vector.size || !s2->string.vector.size) in ZyanStringConcatEx()
205 const ZyanUSize len = s1->string.vector.size + s2->string.vector.size - 1; in ZyanStringConcatEx()
210 ZYAN_MEMCPY(destination->vector.data, s1->string.vector.data, s1->string.vector.size - 1); in ZyanStringConcatEx()
211 ZYAN_MEMCPY((char*)destination->vector.data + s1->string.vector.size - 1, in ZyanStringConcatEx()
219 ZyanStatus ZyanStringConcatCustomBuffer(ZyanString* destination, const ZyanStringView* s1, in ZyanStringConcatCustomBuffer() argument
222 if (!s1 || !s2 || !s1->string.vector.size || !s2->string.vector.size) in ZyanStringConcatCustomBuffer()
227 const ZyanUSize len = s1->string.vector.size + s2->string.vector.size - 1; in ZyanStringConcatCustomBuffer()
236 ZYAN_MEMCPY(destination->vector.data, s1->string.vector.data, s1->string.vector.size - 1); in ZyanStringConcatCustomBuffer()
237 ZYAN_MEMCPY((char*)destination->vector.data + s1->string.vector.size - 1, in ZyanStringConcatCustomBuffer()
835 ZyanStatus ZyanStringCompare(const ZyanStringView* s1, const ZyanStringView* s2, ZyanI32* result) in ZyanStringCompare() argument
837 if (!s1 || !s2) in ZyanStringCompare()
842 if (s1->string.vector.size < s2->string.vector.size) in ZyanStringCompare()
847 if (s1->string.vector.size > s2->string.vector.size) in ZyanStringCompare()
853 const char* const a = (char*)s1->string.vector.data; in ZyanStringCompare()
856 for (i = 0; (i + 1 < s1->string.vector.size) && (i + 1 < s2->string.vector.size); ++i) in ZyanStringCompare()
881 ZyanStatus ZyanStringCompareI(const ZyanStringView* s1, const ZyanStringView* s2, ZyanI32* result) in ZyanStringCompareI() argument
887 if (!s1 || !s2) in ZyanStringCompareI()
892 if (s1->string.vector.size < s2->string.vector.size) in ZyanStringCompareI()
897 if (s1->string.vector.size > s2->string.vector.size) in ZyanStringCompareI()
903 const char* const a = (char*)s1->string.vector.data; in ZyanStringCompareI()
906 for (i = 0; (i + 1 < s1->string.vector.size) && (i + 1 < s2->string.vector.size); ++i) in ZyanStringCompareI()