added str::tonum() to awk

This commit is contained in:
2017-02-11 05:04:13 +00:00
parent 87060d2121
commit 00bae5b613
2 changed files with 78 additions and 33 deletions

View File

@ -1302,6 +1302,7 @@ QSEAWK supports various external modules.
The *str* module provides an extensive set of string manipulation functions.
- str::gsub - equivalent to gsub
- str::index
- str::isalnum
- str::isalpha
@ -1315,11 +1316,21 @@ The *str* module provides an extensive set of string manipulation functions.
- str::isspace
- str::isupper
- str::isxdigit
- str::length - equivalent to length
- str::ltrim
- str::match - equivalent to match
- str::normspace
- str::printf - equivalent to sprintf
- str::rindex
- str::rtrim
- str::trim
- str::split - equivalent to split
- str::sub - equivalent to sub
- str::substr - equivalent to substr
- str::tolower - equivalent to tolower
- str::tonum - convert a string to a number. a numeric value passed as a parameter is returned as it is. the leading prefix of 0b, 0, and 0x specifies the radix of 2, 8, 16 repectively. conversion stops when the end of the string is reached or the first invalid character for conversion is encountered.
- str::toupper - equivalent to toupper
- str::trim
- str::value - get the numeric value of the first character
### Directory ###