diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:43:19 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:43:19 +0300 |
| commit | 5c7048091e3a191e8a34f26852a8976b254e339b (patch) | |
| tree | f1008a55d8ecb3304b5f51ea549156eaba21843b /genqrcode/split.h | |
| parent | 5fad10f89c485cfdc7b99011f07609f8871160d4 (diff) | |
| parent | 49980df270e6a39738a0c886c1eef6b42e782edb (diff) | |
| download | Project-Tick-5c7048091e3a191e8a34f26852a8976b254e339b.tar.gz Project-Tick-5c7048091e3a191e8a34f26852a8976b254e339b.zip | |
Add 'genqrcode/' from commit '49980df270e6a39738a0c886c1eef6b42e782edb'
git-subtree-dir: genqrcode
git-subtree-mainline: 5fad10f89c485cfdc7b99011f07609f8871160d4
git-subtree-split: 49980df270e6a39738a0c886c1eef6b42e782edb
Diffstat (limited to 'genqrcode/split.h')
| -rw-r--r-- | genqrcode/split.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/genqrcode/split.h b/genqrcode/split.h new file mode 100644 index 0000000000..81829e078e --- /dev/null +++ b/genqrcode/split.h @@ -0,0 +1,47 @@ +/* + * qrencode - QR Code encoder + * + * Input data splitter. + * Copyright (C) 2006-2017 Kentaro Fukuchi <kentaro@fukuchi.org> + * + * The following data / specifications are taken from + * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004) + * or + * "Automatic identification and data capture techniques -- + * QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef SPLIT_H +#define SPLIT_H + +#include "qrencode.h" + +/** + * Split the input string (null terminated) into QRinput. + * @param string input string + * @param hint give QR_MODE_KANJI if the input string contains Kanji character encoded in Shift-JIS. If not, give QR_MODE_8. + * @param casesensitive 0 for case-insensitive encoding (all alphabet characters are replaced to UPPER-CASE CHARACTERS. + * @retval 0 success. + * @retval -1 an error occurred. errno is set to indicate the error. See + * Exceptions for the details. + * @throw EINVAL invalid input object. + * @throw ENOMEM unable to allocate memory for input objects. + */ +extern int Split_splitStringToQRinput(const char *string, QRinput *input, + QRencodeMode hint, int casesensitive); + +#endif /* SPLIT_H */ |
