File: simdutf_wrapper.h

package info (click to toggle)
zsv 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,160 kB
  • sloc: ansic: 175,811; cpp: 56,301; sh: 3,623; makefile: 3,048; javascript: 577; cs: 90; awk: 70; python: 41; sql: 15
file content (19 lines) | stat: -rw-r--r-- 353 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* simdutf_wrapper.h - C-callable wrapper around simdutf */

#ifndef SIMDUTF_WRAPPER_H
#define SIMDUTF_WRAPPER_H

#include <stddef.h> /* for size_t */

#ifdef __cplusplus
extern "C" {
#endif

/* Returns 1 if valid UTF-8, 0 otherwise */
int simdutf_is_valid_utf8(const char *buf, size_t len);

#ifdef __cplusplus
}
#endif

#endif /* SIMDUTF_WRAPPER_H */