diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2013-06-06 22:08:14 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2013-06-06 22:08:14 +0000 |
commit | 2d0a0f48e7c5fb8e97b49972250e0b04b5d735fb (patch) | |
tree | eb6f7dee598d0959fd35a793c95cd1ad0d7fff0c /cups/string-private.h | |
parent | 70752071b3b064ddda12662cbfa66fc46eb9eace (diff) | |
download | cups-2d0a0f48e7c5fb8e97b49972250e0b04b5d735fb.tar.gz |
<rdar://problem/13876199> cups.org: Need ippfind command-line utility
Implement --exec.
The ippfind command is now feature complete for CUPS 1.7.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11021 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/string-private.h')
-rw-r--r-- | cups/string-private.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/cups/string-private.h b/cups/string-private.h index bef1aea80..8255bfdfb 100644 --- a/cups/string-private.h +++ b/cups/string-private.h @@ -3,7 +3,7 @@ * * Private string definitions for CUPS. * - * Copyright 2007-2011 by Apple Inc. + * Copyright 2007-2013 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -102,6 +102,12 @@ _cups_isalpha(int ch) /* I - Character to test */ } _CUPS_INLINE int /* O - 1 on match, 0 otherwise */ +_cups_islower(int ch) /* I - Character to test */ +{ + return (ch >= 'a' && ch <= 'z'); +} + +_CUPS_INLINE int /* O - 1 on match, 0 otherwise */ _cups_isspace(int ch) /* I - Character to test */ { return (ch == ' ' || ch == '\f' || ch == '\n' || ch == '\r' || ch == '\t' || @@ -119,12 +125,20 @@ _cups_tolower(int ch) /* I - Character to convert */ { return (_cups_isupper(ch) ? ch - 'A' + 'a' : ch); } + +_CUPS_INLINE int /* O - Converted character */ +_cups_toupper(int ch) /* I - Character to convert */ +{ + return (_cups_islower(ch) ? ch - 'a' + 'A' : ch); +} # else extern int _cups_isalnum(int ch); extern int _cups_isalpha(int ch); +extern int _cups_islower(int ch); extern int _cups_isspace(int ch); extern int _cups_isupper(int ch); extern int _cups_tolower(int ch); +extern int _cups_toupper(int ch); # endif /* _CUPS_INLINE */ |