- 13 Mar, 2022 2 commits
-
-
Rob Swindell authored
-
Rob Swindell authored
Just integers right now. And only big or little endian.
-
- 11 Mar, 2022 1 commit
-
-
Rob Swindell authored
Rename len() method to length() to align with std::string.
-
- 10 Mar, 2022 4 commits
-
-
Rob Swindell authored
Does this fix the FreeBSD/clang build?
-
Rob Swindell authored
This was necessary to get to build for MSVC2019 and GCC 8.3.0
-
Rob Swindell authored
-
Rob Swindell authored
(e.g. those stored in files, e.g. EXITINFO.BBS).
-
- 11 Feb, 2022 2 commits
- 10 Feb, 2022 1 commit
-
-
Deucе authored
-
- 31 Oct, 2021 1 commit
-
-
Rob Swindell authored
Now correctly rejects UTF-8 encoded Unicode surrogates and does not support 5 and 6 byte UTF-8 encodings. For reference: https://github.com/openssl/openssl/commit/ba64e5a92a6f009e311ad1c3565817820a1632a4
-
- 05 Jun, 2021 2 commits
-
-
Rob Swindell authored
-
Rob Swindell authored
These functions can be used for "percent encode/decode" or any other 2-hex-digit encoding/decoding with a single escape character.
-
- 05 Apr, 2021 1 commit
-
-
Rob Swindell authored
-
- 15 Feb, 2021 2 commits
-
-
Rob Swindell authored
Hopefully not introducing any bugs in the process.
-
Rob Swindell authored
Hopefully not introducing any bugs in the process.
-
- 16 Aug, 2020 1 commit
-
-
Rob Swindell authored
-
- 17 Apr, 2020 1 commit
-
-
deuce authored
-
- 15 Apr, 2020 1 commit
-
-
deuce authored
To be fair, this is all weird.
-
- 14 Apr, 2020 1 commit
-
-
deuce authored
Because the test to continue is *after* the loop, we can't continue when c is the last index into lzh->son, or the code will make use of lzh->son[sizeof(lzh->son)/sizeof(lzh->son[0])] which is outside the bounds of the array.
-
- 03 Aug, 2019 1 commit
-
-
rswindell authored
-
- 18 Jul, 2019 1 commit
-
-
rswindell authored
-
- 10 Jul, 2019 3 commits
- 08 Jul, 2019 5 commits
-
-
rswindell authored
-
rswindell authored
-
rswindell authored
-
rswindell authored
utf8.c: In function 'utf8_getc': utf8.c:327:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation] } else ^~~~ utf8.c:329:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' if(val != NULL) { ^~
-
rswindell authored
New function (derived from sbbs_t::utf8_to_cp437()): unicode_to_cp437() New utf8 functions: utf8_replace_chars(), utf8_str_is_valid(). utf8_getc() enhancement: val arg may be NULL (for length/validation uses).
-
- 06 Jul, 2019 6 commits
-
-
rswindell authored
-
rswindell authored
-
rswindell authored
-
rswindell authored
-
rswindell authored
-
rswindell authored
UNICODE -> CP437 conversions (no string/memory compares needed), so cp437_utf8_tbl.* is being replaced by cp437_unicode_tbl.*. Added utf8 module which includes: - utf8_normalize_str() - normalize US-ASCIIZ string, from mailsrvr.c - utf8_putc() - encoder / length calculator - utf8_getc() - decoder The latter 2 were swiped from OpenSSL's a_utf8.c.
-
- 29 Jun, 2019 2 commits
- 28 Jun, 2019 2 commits