~ubuntu-branches/ubuntu/trusty/libidn/trusty

« back to all changes in this revision

Viewing changes to lib/gl/c-ctype.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon Josefsson, Simon Josefsson
  • Date: 2009-04-17 00:22:30 UTC
  • mfrom: (1.2.11 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090417002230-3on40qu1llxq7ybb
Tags: 1.14-3
[ Simon Josefsson ]
* Don't use autotools-dev, the config.* files in libidn
  are newer than what's in autotools-dev.
* Use more idiomatatic code to filter out platforms without gcj.
  Thanks to Adeodato Simó <dato@net.com.org.es>.
* Upload to unstable after testing in experimental.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
   <ctype.h> functions' behaviour depends on the current locale set via
6
6
   setlocale.
7
7
 
8
 
   Copyright (C) 2000-2003, 2006 Free Software Foundation, Inc.
 
8
   Copyright (C) 2000-2003, 2006, 2008 Free Software Foundation, Inc.
9
9
 
10
10
This program is free software; you can redistribute it and/or modify
11
11
it under the terms of the GNU Lesser General Public License as published by
103
103
 
104
104
/* Function declarations. */
105
105
 
 
106
/* Unlike the functions in <ctype.h>, which require an argument in the range
 
107
   of the 'unsigned char' type, the functions here operate on values that are
 
108
   in the 'unsigned char' range or in the 'char' range.  In other words,
 
109
   when you have a 'char' value, you need to cast it before using it as
 
110
   argument to a <ctype.h> function:
 
111
 
 
112
         const char *s = ...;
 
113
         if (isalpha ((unsigned char) *s)) ...
 
114
 
 
115
   but you don't need to cast it for the functions defined in this file:
 
116
 
 
117
         const char *s = ...;
 
118
         if (c_isalpha (*s)) ...
 
119
 */
 
120
 
106
121
extern bool c_isascii (int c); /* not locale dependent */
107
122
 
108
123
extern bool c_isalnum (int c);