KiCad PCB EDA Suite
Loading...
Searching...
No Matches
utf8.cpp File Reference
#include <core/utf8.h>
#include <wx/strconv.h>
#include <wx/buffer.h>
#include <vector>
#include <cassert>

Go to the source code of this file.

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)
 

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.