You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
/* $Id: utf8.h,v 1.3 2013/06/09 20:11:30 steffen Exp $ */
|
|
/* utf8.h
|
|
* Copyright (C) Steffen Pohle 2013 <steffen@gulpe.de>
|
|
*
|
|
* spOSMroute is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* spOSMroute 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _UTF8_H_
|
|
#define _UTF8_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
uint32_t u8_decode (char *str, int *size);
|
|
void u8_encode (char *dest, uint32_t key);
|
|
|
|
int u8_strlen (char *str);
|
|
void u8_strcpy (char *dest, char *src, int pos, int len);
|
|
void u8_strncat (char *dest, int size, char *src);
|
|
void u8_strdel (char *str, int start, int len);
|
|
void u8_strninsert (char *str, int size, char *text, int pos);
|
|
|
|
#endif
|
|
|