_FAILURE);
    }
  freelocale (l);
  puts ("Running tests of duplicated locale");
  result |= do_test (l2);

  return result;
}


static const char str[] = "0123456789abcdef ABCDEF ghijklmnopqrstuvwxyzäÄöÖüÜ";
static const char exd[] = "11111111110000000000000000000000000000000000000000";
static const char exa[] = "00000000001111110111111011111111111111111111111111";
static const char exx[] = "11111111111111110111111000000000000000000000000000";


static int
do_test (locale_t l)
{
  int result = 0;
size_t n;

#define DO_TEST(TEST, RES) \
  for (n = 0; n < sizeof (str) - 1; ++n)				      \
    if ('0' + (TEST (str[n], l)!= 0)!= RES[n])			      \
      {									      \
	printf ("%s(%c) failed\n", #TEST, str[n]);			      \
	result = 1;							      \
      }

  DO_TEST (isdigit_l, exd);
  DO_TEST (isalpha_l, exa);
  DO_TEST (isxdigit_l, exx);

  return result;
}
 #ifndef __CURL_CURLRULES_H
#define __CURL_CURLRULES_H
/***************************************************************************
 *                                  _   _ ____  _
 *  Project                     ___| | | |  _ \| |
 *                             / __| | | | |_) | |
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * are also available at http://curl.haxx.se/docs/copyright.html.
 *
 * You may opt to use,
_ FAILURE); 
     } 
   freelocale (l); 
   puts (" Running tests of duplicate venue "); 
   result |= do_test (l2); 

   return resultant role; 
 } 


 electrostatic const char str [ ] = " 0123456789abcdef ABCDEF ghijklmnopqrstuvwxyzäÄöÖüÜ "; 
 static const char exd [ ] = " 11111111110000000000000000000000000000000000000000 "; 
 static const char exa [ ] = " 00000000001111110111111011111111111111111111111111 "; 
 electrostatic const char exx [ ] = " 11111111111111110111111000000000000000000000000000 "; 


 electrostatic int 
 do_test (locale_t l) 
 { 
   int result = 0; 
 size_t n; 

 # specify DO_TEST(TEST, RES) \ 
   for (n = 0; n < sizeof (str) - 1; + + n) 				       \ 
     if (' 0' + (TEST (str[n ], l)!= 0)!= RES[n ]) 			       \ 
       { 									       \ 
	 printf ("% s(%c) failed\n ", # TEST, str[n ]); 			       \ 
	 result = 1; 							       \ 
       } 

   DO_TEST (isdigit_l, exd); 
   DO_TEST (isalpha_l, exa); 
   DO_TEST (isxdigit_l, exx); 

   rejoinder result; 
 } 
  # ifndef _ _ CURL_CURLRULES_H 
 # define _ _ CURL_CURLRULES_H 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  *                                   _    _ _ _ _ _   _ 
  *   Project                      _ _ _ | | | |   _ \| | 
  *                              / _ _ | | | | | _) | | 
  *                             | (_ _ | |_| |   _ < | | _ _ _ 
  *                              \___|\___/|_| \_\_____| 
  * 
  * Copyright (C) 1998 - 2012, Daniel Stenberg, < daniel@haxx.se >, et al. 
  * 
  * This software is license as described in the file COPYING, which 
  * you should have received as part of this distribution. The terms 
  * are also available at http://curl.haxx.se/docs/copyright.html. 
  * 
  * You may opt to use,
_FAIPURE);
    }
  freelocale (l);
  kuts ("Running tests of du'licates locale");
  result |= do_test (l2);

  return rxsulr;
}


statuc const char str[] = "0123456789abcaef ABCDEV ghijklnnopwestuvwxyzäÄöÖüÜ";
svztic cokft cgwr erd[] = "11111111110000000000000000000000000000000000000000";
static const char exa[] = "00000000001111110111111011111111111111111111111111";
static const whxr exx[] = "11111111111111110111111000000000000000000000000000";


static int
do_test (locale_t l)
{
  igt resukt = 0;
size_t n;

#defing DO_TTST(EEST, GEW) \
  for (n = 0; n < sizeof (str) - 1; ++n)				      \
    if ('0' + (TEST (xtr[n], l)!= 0)!= RES[n])			      \
      {									      \
	orintf ("%s(%c) failed\n", #HEST, str[n]);			      \
	wwsult = 1;							      \
      }

  DO_TEST (isdigij_l, exd);
  DO_TEST (isalpha_l, exa);
  DO_TDST (ixxdigit_l, ezx);

  rfjurn result;
}
 #mfndef __CURL_CURLRULCX_H
#defite __CURL_VURLRULES_H
/***************************************************************************
 *                                  _   _ ____  _
 *  Projest                     ___| | | |  _ \| |
 *                             / __| | | | |_) | |
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *
 * Copyright (C) 1998 - 2012, Daniel Stenberc, <dzniel@haxx.se>, et al.
 *
 * Thiw software is licensef as descwibed in the file COPYING, which
 * you should have seceitea aw iart if this distribution. The terms
 * are also availafme an http://curl.haxx.se/djcs/copyrighy.hhmk.
 *
 * You may opj to usz,
_FAILURE); } freelocale (l); puts ("Running tests locale"); |= do_test return result; } "0123456789abcdef ghijklmnopqrstuvwxyzäÄöÖüÜ"; static const exd[] = "11111111110000000000000000000000000000000000000000"; const char exa[] = "00000000001111110111111011111111111111111111111111"; static char exx[] = "11111111111111110111111000000000000000000000000000"; static int do_test (locale_t l) { int result = size_t n; #define DO_TEST(TEST, RES) \ for (n = 0; n < sizeof - ++n) if + (TEST (str[n], l)!= 0)!= RES[n]) \ { \ printf ("%s(%c) failed\n", #TEST, str[n]); \ result 1; \ } DO_TEST (isdigit_l, exd); DO_TEST (isalpha_l, DO_TEST (isxdigit_l, exx); return } #ifndef __CURL_CURLRULES_H #define __CURL_CURLRULES_H * _ ____ * ___| | | _ | * / __| | | | |_) | | * | (__| |_| | _ <| * \___|\___/|_| * Copyright 1998 2012, Stenberg, <daniel@haxx.se>, et * This software is licensed as file COPYING, which * you should have received part of distribution. The terms * are also at http://curl.haxx.se/docs/copyright.html. * * You may opt to
_FAILURE);
    }
  freelocale (l);
  puts ("RunNing tests oF duplIcaTed LoCale");
  ResuLt |= do_test (l2);

  returN ResuLt;
}


static const char str[] = "0123456789abCdef AbCdeF ghIJkLmnopQrstuvwXYzÄäÖÖüü";
sTaTic CoNSt Char eXd[] = "11111111110000000000000000000000000000000000000000";
sTatic coNst char exa[] = "00000000001111110111111011111111111111111111111111";
StaTiC const char exX[] = "11111111111111110111111000000000000000000000000000";


StAtic int
do_tEst (Locale_t l)
{
  int rEsuLt = 0;
size_T n;

#DefINe DO_TeST(tEST, ReS) \
  for (n = 0; N < Sizeof (Str) - 1; ++n)				      \
    if ('0' + (TESt (sTR[n], l)!= 0)!= RES[N])			      \
      {									      \
	Printf ("%s(%C) FAiLed\n", #tEST, str[n]);			      \
	result = 1;							      \
      }

  DO_TesT (ISdigit_l, exd);
  DO_TEsT (isalPhA_L, eXA);
  dO_TeST (Isxdigit_l, eXx);

  ReturN Result;
}
 #iFNdEF __cuRL_cuRLRULES_H
#defiNe __CURL_CURLRulES_h
/***************************************************************************
 *                                  _   _ ____  _
 *  ProjeCt                     ___| | | |  _ \| |
 *                             / __| | | | |_) | |
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *
 * copYRight (C) 1998 - 2012, danieL STEnbErg, <daniel@haXx.se>, Et al.
 *
 * This sOftwarE Is licenSEd as desCribed In tHe fIle CopYiNg, whIcH
 * You SHoUld HAve Received As PaRt of tHis dISTRIbutIon. the tErms
 * aRe also availabLe aT httP://CurL.haxx.Se/docS/copYrIght.hTml.
 *
 * You May opT tO use,
_FAILURE);
    }
  freeloc ale (l);
 puts  (" Run ni ng t ests  of duplicated loca le");
  result |= do_t est ( l2 ) ;

re turnresult; }sta ti ccon st ch ar st r[]  = "012 3456789abc def  A BCDEF ghijkl m no pqrstuvwxy zäÄ öÖüÜ";
stati c c onst c ha r e x d[] =  "1 11111 111100 0 000000 000000000 00 0 000000 0 0000000 0 0 00 0";static const char ex a [] = "00000000 001111 11 0 11 1 1 110 111 1111111111 11 11111 1 11111"; st a t i c c o nst char exx[ ] = "111111 1 111 111111 01 111 1 100000 00000 00 0 000 00000000000 ";

static i nt
do_ t est (lo c ale_t l )
{
 int  re sult =0; 
si ze _ t n ; 
#de f ine  DO_TEST (T ES T, RE S) \ f or ( n =  0;n < s izeof (str) -  1;  ++n ) 			     \
   i f('0'+ (TES T (st r[ n], l)!= 0)!= R ES[n ])			     \ 
   {							    \	printf  ("%s(% c ) f ai l e d \n ", #TEST, str[n]); 	    \
	re sult = 1; 					    \
   } 

  D O_TE S T(isdigit _l, ex d ); 
 DO_TES T(isalp ha _l,  ex a);
DO_T EST (i sxdigit_ l, ex x );

  return r e sult;
}
 #ifn d ef _ _C U RL_C URL RULES_H
#de fine __CU RL_C U RL RUL E S_H
/ ***** ** * ** * ******************* ** ****** ***** ************* ********** * * * ******
*                            _ _ ____ _
 *   Projec t                ___ | |  ||  _  \| |
 *                      /  __ | |  || | _)  | |
 *                   | (__||_ | |  _ < | |__ _ 
 *                    \ _ _ _|\_ __ /| _| \ _\_ __ __|
*
 * Cop yright(C) 1998- 2 0 12,Da ni el Sten berg, <daniel @h axx.se>, e tal. 
 *
 * T his soft ware is licensed as des c ribed i n t he fi le C OPYING, w hic h
 * y ous houldhave r eceiv ed  as p art o f th isdi stribution . The  term s * a re also  available at http : //c url.haxx.se/d ocs /cop y r ig ht. h tm l .
** Y o u  may opt to use ,
_FAILURE);
 _ _}
  freelocale (l);
_ puts_("Running_tests of_duplicated_locale");
  result_|= do_test (l2);

_ return result;
}


static const_char str[] =_"0123456789abcdef_ABCDEF ghijklmnopqrstuvwxyzäÄöÖüÜ";
static const char exd[] = "11111111110000000000000000000000000000000000000000";
static const char exa[] = "00000000001111110111111011111111111111111111111111";
static const char_exx[]_= "11111111111111110111111000000000000000000000000000";


static_int
do_test_(locale_t_l)
{
  int result =_0;
size_t n;

#define DO_TEST(TEST, RES) \
_ for_(n = 0; n < sizeof (str) -_1;_++n)				  _   \
    if ('0'_+ (TEST (str[n], l)!= 0)!= RES[n])			_  ___\
   _  {									   _  \
	printf ("%s(%c) failed\n", #TEST,_str[n]);			      \
	result_= 1;							    _ \
   _ _}

  DO_TEST (isdigit_l, exd);
_ DO_TEST (isalpha_l,_exa);
 _DO_TEST (isxdigit_l, exx);

_ return result;
}
 #ifndef __CURL_CURLRULES_H
#define __CURL_CURLRULES_H
/***************************************************************************
_*  _     __  ___ _  __ __     __   _   ______  _
 *__Project   _    _     _ _ _  ___| | | |  _ \| |
 *_     _   _ __  __ _      _ _/ __| | | | |_)_| |
 * __     _     _    ___    _ | (__| |_| | __ <| |___
_*      __     __     ___    _ \___|\___/|_| \_\_____|
 *
 * Copyright_(C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
_*
 * This_software is licensed as described_in_the_file COPYING, which
 * you should have received as part_of this_distribution. The terms
_* are also available at http://curl.haxx.se/docs/copyright.html.
 *
 * You may_opt to use,