Skip to content

adamretter/utf8-validator-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UTF8 Validator (C edition)

This is a more basic but much faster version of UTF8 Validator. The C edition, uses the fastvalidate-utf-8 library from Daniel Lemire. The C edition only returns a pass or fail result. It does not provide information about the position at which validation fails or allow to continue validating further after the first error.

A UTF-8 Validation Tool which may be used as a command line tool, if you are looking for a C library to use with your own program see fastvalidate-utf-8.

Released under the Apache 2.0 Licence.

CI

Use from the Command Line

You can build from the source code. You can then run utf8validate (Linux/Mac/Unix).

For example:

$ ./utf8validate

Command Line Exit Codes

  • 0 Success
  • 1 Invalid Arguments provided to the application
  • 2 File was not UTF-8 Valid
  • 4 IO Error, e.g. could not read file

Building from Source Code

Prerequisite

  • c99 compaitble compiler, e.g. modern GCC or Clang
  • Make

Steps

Reference

About

UTF8 Validator (C edition)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •