JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

string/ascii-upper

core-api


    cfunction
    src/core/string.c on line 265, column 1

    (string/ascii-upper str)

    Returns a new string where all bytes are replaced with the 
    uppercase version of themselves in ASCII. Does only a very simple 
    case check, meaning no unicode support.


2 examplesSign in to add an example
Loading...
(defn capitalize [str]
  (string (string/ascii-upper (string/slice str 0 1)) (string/slice str 1)))
veqqqPlayground
(string/ascii-upper "hello")  # => "HELLO"
cellularmitosisPlayground