Expand description
stringsort submodule.
String manipulation and sorting for zshrs
Modules§
- sort_
flags - The canonical
SORTIT_*bits live inzsh.h(ported atcrate::ported::zsh_h). This module used to declare its own set with DIFFERENT values —SORTIT_BACKWARDS = 1/SORTIT_IGNORING_CASE = 8, i.e. those two swapped relative to c:Src/zsh.h:2360-2366 — so any flag word crossing between the two vocabularies silently changed meaning. Re-export the real ones instead of redeclaring them.
Functions§
- appstr
- Append a string to another, returning the result
- bicat
- Concatenate two strings
- dupstring
- Duplicate a string (equivalent to dupstring/ztrdup in C)
- dupstring_
wlen - Duplicate a string with a specified length
- dupstrpfx
- Duplicate a prefix of a string
- natural_
cmp - Natural sort comparison (numbers sorted numerically within strings)
- sort_
strings - Sort string slices with various options
- strcasecmp
- Case-insensitive comparison
- strend
- Get pointer to the last character of a string
- strjoin
- Join strings with a separator
- strlower
- Convert string to lowercase
- strmetasort
- Sort an array of strings with various options
- strprefix
- Check if string starts with prefix
- strsplit
- Split string by separator
- strstr
- Find first occurrence of substring
- strsuffix
- Check if string ends with suffix
- strtrim
- Trim whitespace from both ends
- strupper
- Convert string to uppercase
- tricat
- Concatenate three strings
- zstrcmp
- Compare two strings under the
SORTIT_*bits, delegating to the canonical port ofzstrcmp(Src/sort.c:191) atcrate::ported::sort::zstrcmp.