pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.492 2003/05/07 12:31:52 mast Exp $ + || $Id: builtin_functions.c,v 1.493 2003/05/15 15:33:30 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.492 2003/05/07 12:31:52 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.493 2003/05/15 15:33:30 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:1254:    if (str2[i] < 0x10000) {    /* 0xfffe: Byte-order detection illegal character.    * 0xffff: Illegal character.    */    Pike_error("string_to_unicode(): Illegal character 0x%04x (index %ld) "    "is not a Unicode character.",    str2[i], PTRDIFF_T_TO_LONG(i));    }    if (str2[i] > 0x10ffff) {    Pike_error("string_to_unicode(): Character 0x%08x (index %ld) " -  "is out of range (0x00000000 - 0x0010ffff).", +  "is out of range (0x00000000..0x0010ffff).",    str2[i], PTRDIFF_T_TO_LONG(i));    }    /* Extra wide characters take two unicode characters in space.    * ie One unicode character extra.    */    len += 2;    }    }    out = begin_shared_string(len);    j = len;
pike.git/src/builtin_functions.c:6305:    *! Remove elements that are duplicates.    *!    *! @returns    *! This function returns an copy of the array @[a] with all    *! duplicate values removed. The order of the values is kept in the    *! result; it's always the first of several equal elements that is    *! kept.    *!    *! @note    *! Elements are compared with @[`==]. They are also hashed (see -  *! @[lfun::__hash] for further details if @[a] contains objects). +  *! @[lfun::__hash] for further details if the array contains +  *! objects).    */   PMOD_EXPORT void f_uniq_array(INT32 args)   {    struct array *a, *b;    struct mapping *m;    struct svalue one;    int i, j=0,size=0;       get_all_args("uniq", args, "%a", &a);    push_mapping(m = allocate_mapping(a->size));