summaryrefslogtreecommitdiff
path: root/support/texlab/crates/bibutils_sys/src/is_ws.c
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-05-28 03:03:21 +0000
committerNorbert Preining <norbert@preining.info>2020-05-28 03:03:21 +0000
commit745892fbddea56040139108277e728b53fd8fc11 (patch)
tree15e55e299b38fccdabce8364f1fbf4f02ef37994 /support/texlab/crates/bibutils_sys/src/is_ws.c
parent195ca7e0c377d83455867bdd8e409d4e1cf024ea (diff)
CTAN sync 202005280303
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/is_ws.c')
-rw-r--r--support/texlab/crates/bibutils_sys/src/is_ws.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/is_ws.c b/support/texlab/crates/bibutils_sys/src/is_ws.c
deleted file mode 100644
index 4f9e22e35b..0000000000
--- a/support/texlab/crates/bibutils_sys/src/is_ws.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * is_ws.c
- *
- * Copyright (c) Chris Putnam 2003-2019
- *
- * Source code released under the GPL version 2
- *
- */
-#include "is_ws.h"
-
-/* is_ws(), is whitespace */
-int
-is_ws( const char ch )
-{
- if ( ch==' ' || ch=='\n' || ch=='\t' || ch=='\r' ) return 1;
- else return 0;
-}
-
-const char *
-skip_ws( const char *p )
-{
- if ( p ) {
- while ( is_ws( *p ) ) p++;
- }
- return p;
-}
-
-const char *
-skip_notws( const char *p )
-{
- if ( p ) {
- while ( *p && !is_ws( *p ) ) p++;
- }
- return p;
-}
-
-const char *
-skip_line( const char *p )
-{
- /* ...skip until end-of-line markers */
- while ( *p && *p!='\n' && *p!='\r' ) p++;
-
- /* ...skip end-of-line marker */
- if ( *p=='\r' ) p++; /* for CR LF or just CR end of lines */
- if ( *p=='\n' ) p++;
-
- return p;
-}