TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Functions
split.h File Reference
#include "qrencode.h"

Go to the source code of this file.

Functions

int Split_splitStringToQRinput (const char *string, QRinput *input, QRencodeMode hint, int casesensitive)
 Split the input string (null terminated) into QRinput. More...
 

Function Documentation

int Split_splitStringToQRinput ( const char *  string,
QRinput input,
QRencodeMode  hint,
int  casesensitive 
)

Split the input string (null terminated) into QRinput.

Parameters
stringinput string
hintgive QR_MODE_KANJI if the input string contains Kanji character encoded in Shift-JIS. If not, give QR_MODE_8.
casesensitive0 for case-insensitive encoding (all alphabet characters are replaced to UPPER-CASE CHARACTERS.
Return values
0success.
-1an error occurred. errno is set to indicate the error. See Exceptions for the details.
Exceptions
EINVALinvalid input object.
ENOMEMunable to allocate memory for input objects.

Definition at line 301 of file split.c.

References dupAndToUpper(), free(), and Split_splitString().

Referenced by QRcode_encodeDataStructuredReal(), and QRcode_encodeStringReal().