2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: I18nUtil.h /main/1 1996/03/25 00:52:10 pascale $ */
24 /************************************<+>*************************************
25 ****************************************************************************
30 ** This file contains function definitions for the corresponding .c
34 ** (c) Copyright Hewlett-Packard Company, 1990.
38 ****************************************************************************
39 ************************************<+>*************************************/
41 * (c) Copyright 1996 Digital Equipment Corporation.
42 * (c) Copyright 1996 Hewlett-Packard Company.
43 * (c) Copyright 1996 International Business Machines Corp.
44 * (c) Copyright 1996 Sun Microsystems, Inc.
45 * (c) Copyright 1996 Novell, Inc.
46 * (c) Copyright 1996 FUJITSU LIMITED.
47 * (c) Copyright 1996 Hitachi.
56 #include <X11/Intrinsic.h>
61 #define COMMENT_CHAR '!'
62 #define COMMENT_CHAR2 '#'
64 #define is_comment_char(c) ((c) == COMMENT_CHAR || (c) == COMMENT_CHAR2)
65 #define is_white(c) ((c) == ' ' || (c) == '\t' || (c) == '\n')
66 #define skip_white(p) while (is_white(*(p))) (p)++
67 #define cut_field(p) \
68 for ((p)++; *(p) && !is_white(*(p)); (p)++) ; *(p)++ = 0; skip_white(p)
71 #endif /* _i18nUtil_h */
72 /* DON'T ADD ANYTHING AFTER THIS #endif */