Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r-lyeh/stdstring.h
C string utils library (STB style, header-only).
https://github.com/r-lyeh/stdstring.h
Last synced: about 2 months ago
JSON representation
C string utils library (STB style, header-only).
- Host: GitHub
- URL: https://github.com/r-lyeh/stdstring.h
- Owner: r-lyeh
- License: unlicense
- Archived: true
- Created: 2018-01-15T14:03:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-06T13:16:22.000Z (over 6 years ago)
- Last Synced: 2024-05-02T16:08:31.180Z (5 months ago)
- Language: C
- Homepage:
- Size: 59.6 KB
- Stars: 188
- Watchers: 11
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeCppGameDev - stdstring.h - only). (C++)
README
# stdstring.h
C string utils library (STB style, header-only). Features:
- String expression evaluator (`streval`)
- String formatters (to heap buffers) (`strcpyf*`, `strcatf*`)
- String formatters (to temporary buffers) (`strf*`)
- String fuzzy search (`strscore`, `strfuzzy`)
- String regular expression (`strregex [c?^$*]`)
- String 64-bit hashing (both compile-time and runtime) (`strhash`)
- String interning (quarks) (`strput`, `strget`)
- String matching (`strsub`, `strfindl`, `strfindr`, `strbegin`, `strend`, `strmatch`, `streq`, `streqi`)
- String splitting (with and without allocations) (`strsplit`, `strchop`, `strjoin`)
- String options parsing (`stropt`, `stropti`, `stroptf`)
- String trim utils (`strdel`, `strtrimws`, `strtrimblf/bff`, `strtrimrlfe/ffe`)
- String transform utils (`strrepl`, `strremap`, `strlower`, `strupper`, `strrev`)
- String normalization utils (`strnorm`)
- String conversion utils (`strint`, `strhuman`, `strrobot`)
- String unicode utils (`strutf8`, `strutf32`, `strwiden`, `strshorten`)
- [Documentation](https://rawgit.com/r-lyeh/stdstring.h/master/stdstring.h.html).# Homepage
- https://github.com/r-lyeh/stdstring.h# Credits
- Using Rob Pike's regular expression (apparently public domain).
- Using Sam Hocevar's preprocessor trick (apparently public domain).
- Using Bob Stout's transform utils (public domain).
- Using Sean Barrett and Jeff Roberts' string formatters (unlicensed).
- Using Werner Stoop's expression evaluator (unlicensed).
- Using Dimitri Diakopoulos' & Sean Barrett's unicode stuff (unlicensed).# License
- rlyeh, unlicensed (~public domain).