byte_len
fn byte_len(string s) -> int Import
Source: use text::{byte_len}; src/text.hy Returns the length of s in bytes; the same as s.len().
Parameters#
| Name | Type |
|---|---|
s | string |
Returns#
int
See also#
slice: Returns the part ofsfrom byte offsetstartup to (not including)end.trim_start: Returnsswithout leading ASCII whitespace (space, tab, CR, LF).trim_end: Returnsswithout trailing ASCII whitespace (space, tab, CR, LF).trim: Returnsswithout leading and trailing ASCII whitespace (space, tab, CR, LF).rfind: Returns the byte offset of the lastneedleinhay, or-1.split_at: Splitssat byte offsetatinto the part before and the part fromaton.join: Returns thepartsconcatenated withsepbetween each pair.repeat: Returnssrepeatedntimes; empty whenn <= 0.