OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::UTF32toUTF16_Converter Struct Reference

UTF-32 から UTF-16 への逐次変換クラス More...

#include <UnicodeConverter.hpp>

Public Member Functions

size_t put (char32 code) noexcept
 データを追加します。 More...
 
const std::array< char16, 2 > & get () const noexcept
 作成された UTF-16 文字を取得します。 More...
 
std::array< char16, 2 >::const_iterator begin () const noexcept
 作成された UTF-16 文字の配列の先頭イテレータを返します。 More...
 

Detailed Description

UTF-32 から UTF-16 への逐次変換クラス

Member Function Documentation

◆ begin()

std::array<char16, 2>::const_iterator s3d::UTF32toUTF16_Converter::begin ( ) const
noexcept

作成された UTF-16 文字の配列の先頭イテレータを返します。

Returns
作成された UTF-16 文字の配列の先頭イテレータ

◆ get()

const std::array<char16, 2>& s3d::UTF32toUTF16_Converter::get ( ) const
noexcept

作成された UTF-16 文字を取得します。

Returns
作成された UTF-16 文字

◆ put()

size_t s3d::UTF32toUTF16_Converter::put ( char32  code)
noexcept

データを追加します。

Parameters
code変換用の UTF-32 データ
Returns
get() で文字を取得可能になった場合 true, それ以外の場合は false

The documentation for this struct was generated from the following file: