pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || 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.cmod,v 1.123 2003/02/19 16:30:17 grubba Exp $ + || $Id: builtin.cmod,v 1.124 2003/02/19 17:31:29 marcus Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "opcodes.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"
pike.git/src/builtin.cmod:2269:   /*! @class Bootstring    *!    *! This class implements the "Bootstring" string transcoder described in    *! @url{http://www.ietf.org/internet-drafts/draft-ietf-idn-punycode-03.txt@}.    */   PIKECLASS bootstring   {    CVAR INT_TYPE base, tmin, tmax, skew, damp;    CVAR INT_TYPE initial_bias, initial_n;    CVAR p_wchar2 delim; -  PIKEVAR string digits; +  PIKEVAR string digits flags ID_STATIC|ID_PRIVATE;       static INT_TYPE bootstring_cp_to_digit(p_wchar2 ch)    {    ptrdiff_t digit = THIS->digits->len;    PCHARP digits = MKPCHARP_STR( THIS->digits );    while (digit>=0)    if (INDEX_PCHARP( digits, digit ) == ch)    return digit;    else    --digit;