aboutsummaryrefslogtreecommitdiffstats
path: root/libsimple.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-05 18:29:59 +0100
committerMattias Andrée <maandree@kth.se>2018-11-05 18:29:59 +0100
commit25d1d835d2fdd52144a246a8296460e48d3f3950 (patch)
tree45b7d412830fb6a6b1b7ab6fdc750fee2037e27c /libsimple.h
parentAdd man page for the [v]asprintf[a] functions (diff)
downloadlibsimple-25d1d835d2fdd52144a246a8296460e48d3f3950.tar.gz
libsimple-25d1d835d2fdd52144a246a8296460e48d3f3950.tar.bz2
libsimple-25d1d835d2fdd52144a246a8296460e48d3f3950.tar.xz
Add ischrcaseset and man pages for ischrset, ischrcaseset, and [v]{we,en,e}printf
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsimple.h')
-rw-r--r--libsimple.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/libsimple.h b/libsimple.h
index 0ca873c..b2f9aec 100644
--- a/libsimple.h
+++ b/libsimple.h
@@ -107,37 +107,6 @@ libsimple_close(int *__fdp)
/**
- * Check whether a byte is in a string of bytes
- *
- * @param c The byte to look for, will not be found if it is the NUL byte
- * @param s The string to look in
- * @return 1 if the byte `c` is not the NUL byte and can be found in `s`,
- * 0 otherwise
- */
-_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-static inline int libsimple_inchrset(int __c, const char *__s)
-{ return __c && strchr(__s, __c); }
-#ifndef inchrset
-# define inchrset libsimple_inchrset
-#endif
-
-
-/**
- * Check whether a NUL-terminated string is encoded in UTF-8
- *
- * @param string The string
- * @param allow_modified_nul Whether Modified UTF-8 is allowed, which
- * allows a two-byte encoding for NUL
- * @return 1 if good, 0 on encoding error
- */
-_LIBSIMPLE_GCC_ONLY(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-int libsimple_isutf8(const char *, int);
-#ifndef isutf8
-# define isutf8 libsimple_isutf8
-#endif
-
-
-/**
* Remove an item from a list, keeping the list ordered
*
* `list` must be non-void pointer to a complete type,