/* $Id: utf8.h,v 1.4 2021/07/06 20:52:00 steffen Exp $ */ /* utf8.h * Copyright (C) Steffen Pohle 2013 * * 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 . */ #ifndef _UTF8_H_ #define _UTF8_H_ #include 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