(index ("QR-encode-string" 0) ("MQR-encode-string" 0) ("MQR-encode-string-8bit" 1270) ("QR-encode-string-8bit" 1270) ("QR-encode-data" 2151) ("MQR-encode-data" 2151))
(def (sig (procedure " (QR-encode-string string [version] [level] [encoding] [case-sensitive?])" (id QR-encode-string)) (procedure " (MQR-encode-string string [version] [level] [encoding] [case-sensitive?])" (id MQR-encode-string))) (p "Encodes the given string into a QR code. Returns two values: a u8vector containing the pixel values of the QR code (255 for white and 0 for black) and the number of pixels per row/column of the code. " (tt "version") " is the desired QR version (between 0 and 40 or 0 and 4 for Micro QR, with 0 being automatic, defaults to 0). " (tt "level") " is the level of error correction (between 0 and 3, defaults to 2). " (tt "encoding") " is the encoding type and should be one of " (tt "#:numeric") ", " (tt "#:alpha-numeric") ", " (tt "#:8-bit") ", " (tt "#:kanji") ", " (tt "#:eci") ", " (tt "#:fnc-first") ", or " (tt "#:fnc-second") " (defaults to " (tt "#:8-bit") "). " (tt "case-sensitive?") " is a boolean, defaulting to " (tt "#t") ".") (p "The " (tt "string") " must be short enough to be encoded using the given " (tt "version") ", " (tt "level") ", " (tt "encoding") ", and " (tt "case-sensitive?") ". Otherwise an error will be thrown.") (p (tt "MQR-encode-string") " is the Micro QR version of " (tt "QR-encode-string") "."))
(def (sig (procedure " (MQR-encode-string-8bit string [version] [level])" (id MQR-encode-string-8bit)) (procedure " (QR-encode-string-8bit string [version] [level])" (id QR-encode-string-8bit))) (p "Encodes the given string into a QR code in 8 bit mode. Returns two values: a u8vector containing the pixel values of the QR code (255 for white and 0 for black) and the number of pixels per row/column of the code. " (tt "version") " is the desired QR version (between 0 and 40 or 0 and 4 for Micro QR, with 0 being automatic, defaults to 0). " (tt "level") " is the level of error correction (between 0 and 3, defaults to 2).") (p "The " (tt "string") " must be short enough to be encoded using the given " (tt "version") " and " (tt "level") ". Otherwise an error will be thrown.") (p (tt "MQR-encode-string-8bit") " is the Micro QR version of " (tt "QR-encode-string-8bit") "."))
(def (sig (procedure " (QR-encode-data u8vector [version] [level])" (id QR-encode-data)) (procedure " (MQR-encode-data u8vector [version] [level])" (id MQR-encode-data))) (p "Encodes the given u8vector into a QR code. Returns two values: a u8vector containing the pixel values of the QR code (255 for white and 0 for black) and the number of pixels per row/column of the code. " (tt "version") " is the desired QR version (between 0 and 40 or 0 and 4 for Micro QR, with 0 being automatic, defaults to 0). " (tt "level") " is the level of error correction (between 0 and 3, defaults to 2).") (p "The " (tt "data") " must be short enough to be encoded using the given " (tt "version") " and " (tt "level") ". Otherwise an error will be thrown.") (p (tt "MQR-encode-data") " is the Micro QR version of " (tt "QR-encode-data") "."))
