Skip to content

Commit 19fbe91

Browse files
committed
Update zend_string.h
1 parent b6d3514 commit 19fbe91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Zend/zend_string.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static zend_always_inline zend_string *zend_string_safe_realloc(zend_string *s,
316316
return ret;
317317
}
318318

319-
static zend_always_inline char *zend_string_append_char_to_cstr(const char *str, size_t len, char c) {
319+
static zend_always_inline char *zend_cstr_append_char(const char *str, size_t len, char c) {
320320
char *res = (char *)safe_emalloc(len, 1, 2);
321321
if (len > 0) {
322322
memcpy(res, str, len);
@@ -326,7 +326,7 @@ static zend_always_inline char *zend_string_append_char_to_cstr(const char *str,
326326
return res;
327327
}
328328

329-
static zend_always_inline char *zend_string_concat_to_cstr(const char *s1, size_t len1, const char *s2, size_t len2) {
329+
static zend_always_inline char *zend_cstr_concat(const char *s1, size_t len1, const char *s2, size_t len2) {
330330
char *res = (char *)safe_emalloc(len1, 1, len2 + 1);
331331
if (len1 > 0) {
332332
memcpy(res, s1, len1);
@@ -338,7 +338,7 @@ static zend_always_inline char *zend_string_concat_to_cstr(const char *s1, size_
338338
return res;
339339
}
340340

341-
static zend_always_inline char *zend_string_concat3_to_cstr(const char *s1, size_t len1, const char *s2, size_t len2, const char *s3, size_t len3) {
341+
static zend_always_inline char *zend_cstr_concat3(const char *s1, size_t len1, const char *s2, size_t len2, const char *s3, size_t len3) {
342342
char *res = (char *)safe_emalloc(len1, 1, len2 + len3 + 1);
343343
if (len1 > 0) {
344344
memcpy(res, s1, len1);

0 commit comments

Comments
 (0)