2018-01-29 02:58:59 +03:00
|
|
|
#ifndef HEADER_CURL_CTYPE_H
|
|
|
|
#define HEADER_CURL_CTYPE_H
|
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2022-02-03 15:04:30 +03:00
|
|
|
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2018-01-29 02:58:59 +03:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2020-11-04 16:02:01 +03:00
|
|
|
* are also available at https://curl.se/docs/copyright.html.
|
2018-01-29 02:58:59 +03:00
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
|
|
|
|
2018-04-13 15:28:55 +03:00
|
|
|
#include "curl_setup.h"
|
|
|
|
|
2018-01-29 02:58:59 +03:00
|
|
|
int Curl_isspace(int c);
|
|
|
|
int Curl_isdigit(int c);
|
|
|
|
int Curl_isalnum(int c);
|
|
|
|
int Curl_isxdigit(int c);
|
|
|
|
int Curl_isgraph(int c);
|
|
|
|
int Curl_isprint(int c);
|
|
|
|
int Curl_isalpha(int c);
|
|
|
|
int Curl_isupper(int c);
|
|
|
|
int Curl_islower(int c);
|
2018-04-26 11:15:26 +03:00
|
|
|
int Curl_iscntrl(int c);
|
2018-01-29 02:58:59 +03:00
|
|
|
|
|
|
|
#define ISSPACE(x) (Curl_isspace((int) ((unsigned char)x)))
|
|
|
|
#define ISDIGIT(x) (Curl_isdigit((int) ((unsigned char)x)))
|
|
|
|
#define ISALNUM(x) (Curl_isalnum((int) ((unsigned char)x)))
|
|
|
|
#define ISXDIGIT(x) (Curl_isxdigit((int) ((unsigned char)x)))
|
|
|
|
#define ISGRAPH(x) (Curl_isgraph((int) ((unsigned char)x)))
|
|
|
|
#define ISALPHA(x) (Curl_isalpha((int) ((unsigned char)x)))
|
|
|
|
#define ISPRINT(x) (Curl_isprint((int) ((unsigned char)x)))
|
|
|
|
#define ISUPPER(x) (Curl_isupper((int) ((unsigned char)x)))
|
|
|
|
#define ISLOWER(x) (Curl_islower((int) ((unsigned char)x)))
|
2018-04-26 11:15:26 +03:00
|
|
|
#define ISCNTRL(x) (Curl_iscntrl((int) ((unsigned char)x)))
|
2018-01-29 02:58:59 +03:00
|
|
|
#define ISASCII(x) (((x) >= 0) && ((x) <= 0x80))
|
2018-04-13 15:28:55 +03:00
|
|
|
|
2018-01-29 02:58:59 +03:00
|
|
|
#define ISBLANK(x) (int)((((unsigned char)x) == ' ') || \
|
|
|
|
(((unsigned char)x) == '\t'))
|
|
|
|
|
|
|
|
#endif /* HEADER_CURL_CTYPE_H */
|