Lines Matching refs:str
29 * @param str: string pointer.
32 bool StringAppendPointer(HcString *self, const char *str)
34 if (self != NULL && str != NULL) {
38 return ParcelWrite(&self->parcel, (void *)str, strlen(str) + 1);
48 * @param str: assign value of string pointer.
51 bool StringSetPointer(HcString *self, const char *str)
55 return StringAppendPointer(self, str);
65 * @param str: assign value of string pointer.
69 bool StringSetPointerWithLength(HcString* self, const char *str, uint32_t len)
71 if (self == NULL || str == NULL) {
74 uint32_t strLen = strlen(str);
80 if (false == ParcelWrite(&self->parcel, str, len)) {
214 HcString str;
215 str.parcel = CreateParcel(0, STRING_ALLOC_SIZE);
216 ParcelWriteInt8(&str.parcel, STRING_END_CHAR);
217 return str;
226 * @param str: The string you want to delete.
228 void DeleteString(HcString *str)
230 if (str != NULL) {
231 DeleteParcel(&str->parcel);