]> Kevux Git Server - fll/commit
Update: simplify and rework string functions
authorKevin Day <thekevinday@gmail.com>
Sat, 2 May 2020 23:42:44 +0000 (18:42 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 3 May 2020 03:19:35 +0000 (22:19 -0500)
commit5cfe0e8295a2cdf854bffb1475aa1a4311c71277
tree3552720c89980e885e268c9161d34c94edcaaf98
parentdadf9ed0e4b1f54fc274b26ef1e41e2ade876df3
Update: simplify and rework string functions

The rip and append functions are functionally identical.
Remove the rip function.

With the rip functions gone, the rip_trim functions are renamed to rip.
This way "rip" functions operate like a theoretical append_trim function, but with fewer words.

Make the string functions use start and stop ranges instead of lengths.
This eliminates the needs for the partial functions.

Add new nulless functions that check for and remove nulls from source strings while transferring them to the destination string.
This allows for converting the strings that may have nulls to nulless strings such that they can be used in null-sensitive functions such as those found in the standard C libraries.

Make sure the utf_string functions match correspond to the string functions.
14 files changed:
level_1/fl_string/c/private-string.c
level_1/fl_string/c/private-string.h
level_1/fl_string/c/string.c
level_1/fl_string/c/string.h
level_1/fl_utf/c/private-utf.c
level_1/fl_utf/c/private-utf.h
level_1/fl_utf/c/utf.c
level_1/fl_utf/c/utf.h
level_2/fll_program/c/program.c
level_2/fll_program/c/program.h
level_3/fss_basic_list_read/c/private-fss_basic_list_read.c
level_3/fss_basic_read/c/private-fss_basic_read.c
level_3/fss_extended_list_read/c/private-fss_extended_list_read.c
level_3/fss_extended_read/c/private-fss_extended_read.c