84ecbdb
add str_utf8_stats to base system - Robyt3
3500429
use str_utf8_stats in CLineInput::Set - Robyt3
5cf3562
refactor CLineInput::Clear - Robyt3
fa8f540
use str_utf8_stats in CLineInput::Manipulate - Robyt3
35a3d8c
add CLineInput::SetRange - Robyt3
85236ed
rename CLineInput::Add to Append and refactor - Robyt3
c5ca424
add CLineInput::Insert - Robyt3
dcdea25
remove unused CLineInput::CCallback - Robyt3
d747edd
replace DeleteUntilCursor and DeleteFromCursor with SetRange - Robyt3
fd87fb8
Merge #4393 - bors[bot]acme-staging-v02.api.letsencrypt.org
toupper(0) = 0
sounds reasonable> cat a.rs
fn main() {
println!("{:?}", "\0".to_uppercase());
}
$ ./a
"\u{0}"
toupper
has no way to return an error and just returns 0
for 0
, right? Or maybe 0
is what it returns on error? Who knows! It's a C API! Anything is possible.
signed char
or a char
that is signedstr_utf8_forward
, which returns an unchanged size in this case. The comparison new_size != *size
was previously redundant for that reason.
Update comments and add some empty lines for consistency.
@heinrich5991