diff options
-rw-r--r-- | filter.c | 6 | ||||
-rw-r--r-- | filter.h | 2 | ||||
-rw-r--r-- | txr.1 | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -48,7 +48,7 @@ val filters; val filter_k, lfilt_k, rfilt_k, to_html_k, from_html_k; val upcase_k, downcase_k; val topercent_k, frompercent_k, tourl_k, fromurl_k; -val tonumber_k, tointeger_k, tofloat_k, hextoint_k; +val tonumber_k, toint_k, tofloat_k, hextoint_k; static val make_trie(void) { @@ -697,7 +697,7 @@ void filter_init(void) tourl_k = intern(lit("tourl"), keyword_package); fromurl_k = intern(lit("fromurl"), keyword_package); tonumber_k = intern(lit("tonumber"), keyword_package); - tointeger_k = intern(lit("toinger"), keyword_package); + toint_k = intern(lit("toint"), keyword_package); tofloat_k = intern(lit("tofloat"), keyword_package); hextoint_k = intern(lit("hextoint"), keyword_package); @@ -715,7 +715,7 @@ void filter_init(void) sethash(filters, tourl_k, curry_12_1(func_n2(url_encode), t)); sethash(filters, fromurl_k, curry_12_1(func_n2(url_decode), t)); sethash(filters, tonumber_k, func_n1(num_str)); - sethash(filters, tointeger_k, curry_12_1(func_n2(int_str), nil)); + sethash(filters, toint_k, curry_12_1(func_n2(int_str), nil)); sethash(filters, tofloat_k, func_n1(flo_str)); sethash(filters, hextoint_k, curry_12_1(func_n2(int_str), num_fast(16))); @@ -28,7 +28,7 @@ extern val filters; extern val filter_k, lfilt_k, rfilt_k, to_html_k, from_html_k; extern val upcase_k, downcase_k; extern val topercent_k, frompercent_k, tourl_k, fromurl_k; -extern val tonumber_k, tointeger_k, tofloat_k, hextoint_k; +extern val tonumber_k, toint_k, tofloat_k, hextoint_k; val trie_lookup_begin(val trie); val trie_value_at(val node); @@ -7684,7 +7684,7 @@ with a radix of 10. Non-numeric junk results in the object .codn nil . -.coIP :tointeger +.coIP :toint Converts strings to integers as if using .code int-str with a radix of 10. |