pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: stralloc.c,v 1.207 2006/03/20 18:31:26 grubba Exp $ + || $Id: stralloc.c,v 1.208 2006/03/20 18:39:16 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "pike_error.h"   #include "gc.h"
pike.git/src/stralloc.c:2483:    string_builder_putchar(buf, 'e');    goto next;    }    /* Check if we can use an octal escape. */    if ((i+1 < str->len) &&    ((next_ch = index_shared_string(str, i+1)) >= '0') &&    (next_ch <= '7')) {    /* No. */    if (flags & QUOTE_NO_STRING_CONCAT) {    string_builder_putchar(buf, 'u'); -  string_builder_append_integer(buf, 16, ch, APPEND_ZERO_PAD, 4, 4); +  string_builder_append_integer(buf, ch, 16, APPEND_ZERO_PAD, 4, 4);    } else {    string_builder_append_integer(buf, ch, 8, 0, 1, 1);    string_builder_binary_strcat(buf, "\"\"", 2);    }    goto next;    }    string_builder_append_integer(buf, ch, 8, 0, 1, 1);    }    next:    if (buf->s->len > max_len) {