KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pdf_unicode.h File Reference
#include <cstdint>
#include <string>

Go to the source code of this file.

Functions

std::string FormatPdfUtf16Hex (uint32_t aCodepoint)
 Format one Unicode code point as the hex digits of its UTF-16BE representation.
 

Function Documentation

◆ FormatPdfUtf16Hex()

std::string FormatPdfUtf16Hex ( uint32_t aCodepoint)

Format one Unicode code point as the hex digits of its UTF-16BE representation.

Parameters
aCodepointa Unicode code point
Returns
the code point as four uppercase hex digits, or eight for a surrogate pair; "003F" ('?') when the value is above U+10FFFF

Definition at line 25 of file pdf_unicode.cpp.

Referenced by PDF_OUTLINE_FONT_SUBSET::BuildToUnicodeCMap(), PDF_STROKE_FONT_SUBSET::BuildToUnicodeCMap(), and PDF_PLOTTER::encodeStringForPlotter().