toUtf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef _SQUID_CHARSET_H
10 #define _SQUID_CHARSET_H
11 
12 #include "sbuf/forward.h"
13 
15 SBuf Latin1ToUtf8(const char *in);
16 
18 SBuf Cp1251ToUtf8(const char *in);
19 
21 bool isValidUtf8String(const char *source, const char *sourceEnd);
22 
23 #endif /* _SQUID_CHARSET_H */
24 
bool isValidUtf8String(const char *source, const char *sourceEnd)
returns whether the given input is a valid (or empty) sequence of UTF-8 code points
Definition: toUtf.cc:166
Definition: SBuf.h:87
SBuf Latin1ToUtf8(const char *in)
converts ISO-LATIN-1 to UTF-8
Definition: toUtf.cc:14
SBuf Cp1251ToUtf8(const char *in)
converts CP1251 to UTF-8
Definition: toUtf.cc:35

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors