pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:2796:    ptrdiff_t max_len,    int flags)   {    ptrdiff_t old_len = buf->s->len;       for (; i < str->len; i++) {    p_wchar2 ch = index_shared_string(str, i);    if (ch < 0 || ch > 0xffff) {    /* Huge character. */    string_builder_binary_strcat(buf, "\\U", 2); -  string_builder_append_integer(buf, ch, 16, APPEND_ZERO_PAD, 8, 8); +  string_builder_append_integer(buf, (unsigned INT32)ch, 16, APPEND_ZERO_PAD, 8, 8);    } else if (ch > 0xff) {    /* Unicode character. */    string_builder_binary_strcat(buf, "\\u", 2);    string_builder_append_integer(buf, ch, 16, APPEND_ZERO_PAD, 4, 4);    } else if (ch & 0x60) {    /* Printable character or DEL. */    if (ch == '\177') {    /* DEL */    goto ctrl_char;    } else if ((ch == '"') || (ch == '\\')) {