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.538 2004/04/12 00:27:38 per Exp $ + || $Id: builtin_functions.c,v 1.539 2004/04/13 06:43:24 jonasw Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.538 2004/04/12 00:27:38 per Exp $"); + RCSID("$Id: builtin_functions.c,v 1.539 2004/04/13 06:43:24 jonasw 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:399:    break;    } else {    hi = mid;    }    }    return(cache = (struct case_info *)case_info + lo);   }      #define DO_LOWER_CASE(C) do {\    INT32 c = C; \ -  struct case_info *ci = find_ci(c); \ +     if(c<128){if(c >= 'A' && c <= 'Z' ) C=c+0x20;}else {\ -  +  struct case_info *ci = find_ci(c); \    if (ci) { \    switch(ci->mode) { \    case CIM_NONE: case CIM_LOWERDELTA: break; \    case CIM_UPPERDELTA: C = c + ci->data; break; \    case CIM_CASEBIT: C = c | ci->data; break; \    case CIM_CASEBITOFF: C = ((c - ci->data) | ci->data) + ci->data; break; \    default: Pike_fatal("lower_case(): Unknown case_info mode: %d\n", ci->mode); \    } \    }} \    } while(0)