qr_mode: Determine the required mode

View source: R/qr_mode.R

qr_modeR Documentation

Determine the required mode

Description

The current implementation handles three modes: numeric, alphanumeric and byte. Kanji is currently not supported. Please contact the maintainer if you need it. Numeric: only digits from 0 to 9 Alphanumeric: all numeric characters, upper case LETTERS, and the characters " " (space), "$", "%", "*", "+", "-", ".", "/" and ":" Byte: All characters from the Latin 1 (ISO 8859-1) character set. Input strings with an other encoding are converted into Latin 1. The function return an error if such conversion fails.

Usage

qr_mode(x)

Arguments

x

the input string

Value

a character indicating the mode

Author(s)

Thierry Onkelinx

See Also

Other internal: qr_encode(), qr_error(), qr_matrix(), qr_version()

Examples

qr_mode("0123")
qr_mode("A")
qr_mode("a")

ThierryO/qrcode documentation built on Oct. 2, 2024, 9:02 p.m.