KiCad PCB EDA Suite
Loading...
Searching...
No Matches
utf8.h File Reference
#include <iostream>
#include <string>
#include <wx/string.h>

Go to the source code of this file.

Classes

class  UTF8
 An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and from wxString, to and from std::string, and has non-mutating iteration over Unicode characters. More...
 
class  UTF8::uni_iter
 uni_iter is a non-mutating iterator that walks through unicode code points in the UTF8 encoded string. More...
 

Macros

#define MAYBE_VERIFY_UTF8(x)
 

Functions

bool IsUTF8 (const char *aString)
 Test a C string to see if it is UTF8 encoded.
 
std::ostream & operator<< (std::ostream &aStream, const UTF8 &aRhs)
 

Macro Definition Documentation

◆ MAYBE_VERIFY_UTF8

#define MAYBE_VERIFY_UTF8 (   x)

Definition at line 50 of file utf8.h.

Function Documentation

◆ IsUTF8()

bool IsUTF8 ( const char *  aString)

Test a C string to see if it is UTF8 encoded.

An ASCII string is a valid UTF8 string.

Definition at line 179 of file utf8.cpp.

References next(), and UTF8::uni_forward().

◆ operator<<()

std::ostream & operator<< ( std::ostream &  aStream,
const UTF8 aRhs 
)

Definition at line 244 of file utf8.cpp.

References operator<<().