YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib 命名空间参考

命名空间

 Devices
 
 Drawing
 图形处理。
 
 DS
 
 IO
 
 Messaging
 
 Shells
 
 Text
 
 Timers
 
 UI
 

class  Application
 程序实例。 更多...
 
class  DebugTimer
 调试计时器。 更多...
 
struct  delete_obj_ndebug
 delete 仿函数。 更多...
 
struct  delete_second_mem_ndebug
 delete 第二成员仿函数。 更多...
 
struct  EventArgsHead
 
struct  EventArgsHead< tuple< _tParams...> >
 
struct  ExpandMemberFirst
 仿函数:替换非静态成员二元函数的第一个参数。 更多...
 
struct  ExpandMemberFirstBinder
 仿函数:替换非静态成员二元函数的第一个参数并绑定到指定对象。 更多...
 
class  FatalError
 致命错误。 更多...
 
class  File
 文件基类。 更多...
 
class  FPSCounter
 帧速率计数器。 更多...
 
class  GAccessList
 访问列表。 更多...
 
class  GDependencyEvent
 依赖事件项类模板。 更多...
 
class  GEvent
 事件类模板。 更多...
 
class  GEvent< _tRet(_tParams...)>
 
class  GEventPointerWrapper
 事件项类型。 更多...
 
class  GEventWrapper
 事件包装类模板。 更多...
 
class  GHandlerAdaptor
 事件处理器适配器模板。 更多...
 
struct  GHandlerRegisterBase
 注册处理器抽象模板:供派生类加载一个或多个键和指定类型关联的例程。 更多...
 
class  GHEvent< _tRet(_tParams...)>
 
class  GLocalStaticCache
 全局局部静态单态存储器。 更多...
 
class  GMCounter
 模板类实例计数器。 更多...
 
class  GMRange
 范围模块类。 更多...
 
class  GMRUCache
 按最近最多使用策略刷新的缓存。 更多...
 
class  GShellSession
 Shell 连接会话。 更多...
 
struct  GSStringTemplate
 
class  GStaticCache
 全局静态单态存储器。 更多...
 
class  GUIApplication
 平台相关的应用程序类。 更多...
 
struct  HasOwnershipOf
 标签类型元运算。 更多...
 
struct  HeldEqual
 
struct  HeldEqual< pair< _type1, _type2 >, pair< _type3, _type4 > >
 
struct  HeldEqual< weak_ptr< _type1 >, weak_ptr< _type2 > >
 
class  LoggedEvent
 记录日志的异常事件类。 更多...
 
class  MIMEBiMapping
 MIME 和文件扩展名双向映射。 更多...
 
struct  MoreConvertible
 转换类型选择。 更多...
 
struct  MoveTag
 指示转移的标记。 更多...
 
struct  OwnershipTag
 指定对于参数指定类型的成员具有所有权的标签。 更多...
 
class  PointerHolder
 带等于接口的指针类型动态泛型持有者。 更多...
 
struct  PointerTag
 指示指针的标记。 更多...
 
struct  safe_delete_obj
 带置空指针操作的 delete 仿函数。 更多...
 
struct  SelectConvertible
 转换类型选择。 更多...
 
class  TextFile
 文本文件类。 更多...
 
class  ValueHolder
 带等于接口的值类型动态泛型持有者。 更多...
 
class  ValueNode
 值类型节点。 更多...
 
class  ValueObject
 值类型对象类。 更多...
 

类型定义

using string = GSStringTemplate< char >::basic_string
 
using ucs2string = GSStringTemplate< CHRLib::ucs2_t >::basic_string
 
using ucs4string = GSStringTemplate< CHRLib::ucs4_t >::basic_string
 
using EventPriority = u8
 事件优先级。 更多...
 
using Exception = std::exception
 YSLib 异常基类。 更多...
 
using GeneralEvent = std::runtime_error
 一般运行时异常事件类。 更多...
 
using ResourceIndex = decltype(__LINE__)
 
using ResourceMap = map< ResourceIndex, ValueObject >
 
using u8 = std::uint8_t
 通用数据类型。 更多...
 
using u16 = std::uint16_t
 
using u32 = std::uint32_t
 
using u64 = std::uint64_t
 
using s8 = std::int8_t
 
using s16 = std::int16_t
 
using s32 = std::int32_t
 
using s64 = std::int64_t
 
using vu8 = volatile u8
 
using vu16 = volatile u16
 
using vu32 = volatile u32
 
using vu64 = volatile u64
 
using vs8 = volatile s8
 
using vs16 = volatile s16
 
using vs32 = volatile s32
 
using vs64 = volatile s64
 

函数

YF_API void Execute (GUIApplication &, shared_ptr< Shell >=make_shared< Shells::GUIShell >())
 执行程序主消息循环。 更多...
 
YB_NORETURN YF_API void HandleFatalError (const FatalError &) ynothrow
 处理致命错误:显示错误信息并终止程序。 更多...
 
YF_API ValueNode LoadNPLA1File (const char *disp, const char *path, ValueNode(*creator)(), bool show_info={})
 载入 NPLA1 配置文件。 更多...
 
YF_API ValueNode ReadConfiguration (TextFile &)
 从文本文件中读取配置。 更多...
 
YF_API void WriteConfiguration (TextFile &, const ValueNode &)
 写入配置至文本文件。 更多...
 
YF_API ValueNode LoadConfiguration (bool={})
 载入默认配置。 更多...
 
YF_API void SaveConfiguration (const ValueNode &)
 保存默认配置。 更多...
 
YF_API void InitializeEnviornment ()
 初始化环境。 更多...
 
YF_API ValueNode InitializeInstalled ()
 初始化已安装项:检查安装完整性并载入主配置文件的配置项。 更多...
 
YF_API void InitializeSystemFontCache (Drawing::FontCache &, const string &, const string &)
 初始化系统字体缓存。 更多...
 
YF_API void Uninitialize () ynothrow
 反初始化。 更多...
 
YF_API ValueNodeFetchRoot ()
 取值类型根节点。 更多...
 
YF_API Drawing::FontCacheFetchDefaultFontCache ()
 取默认字体缓存。 更多...
 
YF_API MIMEBiMappingFetchMIMEBiMapping ()
 取 MIME 类型名和文件扩展名双向映射对象。 更多...
 
YF_API shared_ptr
< UI::TextList::ListType > 
FetchFontFamilyNames ()
 取字型家族名称。 更多...
 
template<typename _type >
bool reset (_type *&p) ynothrow
 
template<typename _type >
bool operator== (const shared_ptr< _type > &sp, _type *p)
 比较: shared_ptr 和内建指针类型的相等关系。 更多...
 
template<typename _type1 , typename _type2 >
bool operator== (const weak_ptr< _type1 > &x, const weak_ptr< _type2 > &y)
 比较: weak_ptr 相等关系。 更多...
 
template<typename _type >
bool operator!= (const shared_ptr< _type > &sp, _type *p)
 比较: shared_ptr 左值和内建指针类型的不等关系。 更多...
 
template<typename _type1 , typename _type2 >
bool operator!= (const weak_ptr< _type1 > &x, const weak_ptr< _type2 > &y)
 比较: weak_ptr 不等关系。 更多...
 
template<class _tMap , typename _tKey , typename _fCallable , typename... _tParams>
auto CacheLookup (_tMap &cache, const _tKey &key, _fCallable init, _tParams &&...args) -> decltype((cache.begin() ->second))
 以指定的关键字查找作为缓存的无序关联容器, 若没有找到使用指定的可调用对象和参数初始化内容。 更多...
 
template<typename _fCallable >
void PostTask (_fCallable &&f, Messaging::Priority prior=Messaging::NormalPriority)
 通过消息队列部署后任务。 更多...
 
template<typename _type >
_type * AccessPtr (const ValueNode &node) ynothrow
 访问节点的指定类型对象指针。 更多...
 
template<typename _type >
_type * AccessPtr (const ValueNode *p_node) ynothrow
 访问节点的指定类型对象指针。 更多...
 
template<typename _tString , typename... _tParams>
ValueNode StringifyToNode (_tString &&name, _tParams &&...args)
 取指定名称和转换为字符串的值类型节点。 更多...
 
template<class _tPack >
ValueNode UnpackToNode (_tPack &&pk)
 从参数取以指定分量为初始化参数的值类型节点。 更多...
 
template<typename... _tParams>
unique_ptr< ValueNode::ContainerCollectNodes (_tParams &&...args)
 取指定值类型节点为成员的节点容器。 更多...
 
template<typename _tString , typename... _tParams>
ValueNode PackNodes (_tString &&name, _tParams &&...args)
 取以指定分量为参数对应初始化得到的值类型节点为子节点的值类型节点。 更多...
 
YF_API bool IsPrefixedIndex (const string &, char= '$')
 判断字符串是否是一个指定字符和非负整数的组合。 更多...
 
YF_API ApplicationFetchAppInstance () ynothrow
 取应用程序实例。 更多...
 
shared_ptr< Shell > FetchShellHandle () ynothrow
 取当前应用程序线程空间中活动的 Shell 句柄。 更多...
 
bool Activate (const shared_ptr< Shell > &hShl)
 激活 Shell 对象:控制权转移给此对象以维持单线程运行。 更多...
 
YF_API void PostQuitMessage (int nExitCode, Messaging::Priority p=0xF0)
 以优先级 p 发起 Shell 终止请求,返回 nExitCode。 更多...
 
template<typename _type >
yconstfn _type FetchZero () ynothrow
 取指定类型的零元素。 更多...
 
yconstfn s8 FetchSign (int a, int b=0) ynothrow
 整数类型符号函数。 更多...
 
template<typename _type >
yconstfn s8 FetchSign (const _type &a, const _type &b=FetchZero< _type >()) ynothrow
 符号函数。 更多...
 
yconstfn int FetchSignFromInterval (int d, int a, int b) ynothrow
 判断整数 d 和以 [a, b](a ≤ b) 或 [b, a](a > b) 区间的关系。 更多...
 
template<typename _type >
yconstfn int FetchSignFromInterval (const _type &d, const _type &a, const _type &b) ynothrow
 判断 d 和以 [a, b](a ≤ b) 或 [b, a](a > b) 区间的关系。 更多...
 
template<typename _type >
bool IsInInterval (_type i, _type b) ynothrow
 判断 i 是否在左闭右开区间 [FetchZero<_type>(), b) 中。 更多...
 
template<typename _type >
bool IsInInterval (_type i, _type a, _type b) ynothrow
 判断 i 是否在左闭右开区间 [a, b) 中。 更多...
 
template<typename _type >
bool IsInClosedInterval (_type i, _type b) ynothrow
 判断 i 是否在闭区间 [FetchZero<_type>(), b] 中。 更多...
 
template<typename _type >
bool IsInClosedInterval (_type i, _type a, _type b) ynothrow
 判断 i 是否在闭区间 [a, b] 中。 更多...
 
template<typename _type >
bool IsInOpenInterval (_type i, _type b) ynothrow
 判断 i 是否在开区间 (FetchZero<_type>(), b) 内。 更多...
 
template<typename _type >
bool IsInOpenInterval (_type i, _type a, _type b) ynothrow
 判断 i 是否在开区间 (a, b) 内。 更多...
 
template<typename _type >
size_t SwitchInterval (_type v, const _type *a, size_t n) ynothrow
 计算满足指定的值 v 在区间 [a[i], a[i + 1]) 内最小的 i 。 更多...
 
template<typename _type >
size_t SwitchAddedInterval (_type v, const _type *a, size_t n) ynothrow
 计算满足指定的值 v 在区间 [b(i), b(i + 1)) 内的最小的 i ; 其中 b(i) 是 a[i] 前 i 项的和。 更多...
 
template<typename _type >
void RestrictInClosedInterval (_type &v, const _type &a, const _type &b) ynothrow
 约束 v 在闭区间 [a, b] 中。 更多...
 
template<typename _type >
void RestrictInInterval (_type &i, int a, int b) ynothrow
 约束整数 i 在左闭右开区间 [a, b) 中。 更多...
 
template<typename _type >
void RestrictUnsignedStrict (_type &u, unsigned b) ynothrow
 约束无符号整数 u 在区间上界 b 内。 更多...
 
template<typename _type >
void RestrictUnsigned (_type &u, unsigned b) ynothrow
 约束无符号整数 u 在左闭右开区间 [0, b) 中。 更多...
 
template<typename _type >
void RestrictLessEqual (_type &a, _type &b) ynothrow
 约束关系:a ≤ b 。 更多...
 
template<typename _tOut >
void ClearSequence (_tOut dst, size_t n) ynothrow
 清除指定的连续对象。 更多...
 
template<typename _type >
yconstfn auto CloneNonpolymorphic (const _type &p) -> decltype(&*p)
 使用 new 复制指定指针指向的对象。 更多...
 
template<class _type >
auto ClonePolymorphic (const _type &p) -> decltype(&*p)
 使用 clone 成员函数复制指定指针指向的多态类类型对象。 更多...
 
template<typename... _tParams>
 DeclDerivedI (, GIHEvent, ystdex::cloneable) DeclIEntry(size_t operator()(_tParams...) const ) DeclIEntry(GIHEvent *clone() const override) EndDecltemplate< typename > class GHEvent
 事件处理器接口模板。 更多...
 
yconstexpr EventPriority DefaultEventPriority (0x80)
 默认事件优先级。 更多...
 
 DeclDerivedI (YF_API, IValueHolder, ystdex::any_ops::holder) DeclIEntry(bool operator
 带等于接口的动态泛型持有者接口。 更多...
 
template<typename _type1 , typename _type2 >
yconstfn bool AreEqualHeld (const _type1 &x, const _type2 &y)
 判断动态泛型的持有值是否相等。 更多...
 
template<typename _type >
_type FetchInstance ()
 取指定类型的无参数构造的对象。 更多...
 
template<typename _type >
_type & FetchStaticRef ()
 取指定类型的静态默认对象。 更多...
 
template<typename _type >
const _type & FetchPrototype ()
 取指定类型的静态原型对象。 更多...
 
YF_API void AddMIMEItems (MIMEBiMapping &, const ValueNode &, MIMEBiMapping::MIMEType &&={})
 根据 NPLA1 节点内容增加 MIME 映射。 更多...
 
 DeclI (YF_API, IResource) EndDeclnamespace Drawing
 资源接口。 更多...
 
YF_API yimpl (GUIApplication &) FetchGlobalInstance() ynothrow
 取全局应用程序实例。 更多...
 
template<class _tApp >
_tApp & FetchGlobalInstance () ynothrow
 
template<class _type , class _tHandle >
_type & HandleToReference (_tHandle h) ythrow(std
 句柄转换:对象引用。 更多...
 
template<class _tShell >
_tShell & FetchShell ()
 取指定 Shell 句柄对应的 Shell 引用 。 更多...
 
template<class _tShl >
shared_ptr< Shell > FetchStored ()
 取全局 Shell 句柄。 更多...
 
template<class _tShl >
void ReleaseStored ()
 释放全局 Shell 。 更多...
 
bool IsNowShell (const shared_ptr< Shell > &hShl)
 判断句柄指定的 Shell 是否为当前线程空间中运行的 Shell 。 更多...
 
errno_t NowShellTo (const shared_ptr< Shell > &hShl)
 向句柄指定的 Shell 对象转移线程控制权。 更多...
 
template<class _tShl >
errno_t NowShellToNew ()
 向新建 Shell 对象转移控制权。 更多...
 
template<class _tShl >
errno_t NowShellToStored ()
 向全局 Shell 管理器的对象转移控制权。 更多...
 
void SetShellTo (const shared_ptr< Shell > &hShl, Messaging::Priority prior=Messaging::NormalPriority)
 通过主消息队列向指定 Shell 对象转移控制权。 更多...
 
template<class _tShl >
void SetShellToNew ()
 通过主消息队列向新建 Shell 对象转移控制权。 更多...
 
template<class _tShl >
void SetShellToStored ()
 通过主消息队列向全局 Shell 管理器内的对象转移控制权。 更多...
 
template<class _tShl >
void CallStoredAtOnce ()
 封装向全局 Shell 管理器内的对象转移控制权。 更多...
 
template<class _tShl >
void CallStored ()
 封装通过消息队列向全局 Shell 管理器内的对象转移控制权。 更多...
 
void ResetDesktop (Desktop &dsk, Devices::Screen &scr)
 复位桌面。 更多...
 
YF_API void RemoveGlobalTasks ()
 从全局消息队列中移除所有后台消息。 更多...
 
yconstexpr const char * DefaultTimeFormat ("%04u-%02u-%02u %02u:%02u:%02u")
 默认时间格式字符串。 更多...
 
YF_API const char * TranslateTime (const std::tm &, const char *=DefaultTimeFormat)
 格式化时间字符串。 更多...
 
YF_API const char * TranslateTime (const std::time_t &, const char *=DefaultTimeFormat) ythrow(GeneralEvent)
 
YF_API const ValueNodeAccessNode (const ValueNode::Container *, const string &)
 访问容器中的节点。 更多...
 
const ValueNodeAccessNode (const ValueNode::Container &con, const string &name)
 
YF_API const ValueNodeAccessNodePtr (const ValueNode::Container &, const string &)
 访问容器中的节点指针。 更多...
 
const ValueNodeAccessNodePtr (const ValueNode::Container *p_con, const string &name)
 
const ValueNodeUnpackToNode (const ValueNode &arg)
 从引用参数取值类型节点:返回自身。 更多...
 
ValueNode && UnpackToNode (ValueNode &&arg)
 
YF_API void PostMessage (const Message &, Messaging::Priority) ynothrow
 全局默认队列消息发送函数。 更多...
 
void PostMessage (Messaging::ID id, Messaging::Priority prior, const ValueObject &vo={}) ynothrow
 
void PostMessage (Messaging::ID id, Messaging::Priority prior, ValueObject &&c) ynothrow
 
template<Messaging::MessageID _vID>
void PostMessage (Messaging::Priority prior, const typename Messaging::SMessageMap< _vID >::TargetType &target) ynothrow
 
template<typename _tRet , typename... _tParams>
GEvent< _tRet(_tParams...)> & AddUnique (GEvent< _tRet(_tParams...)> &evt, const typename GEvent< _tRet(_tParams...)>::HandlerType &h, EventPriority prior=DefaultEventPriority)
 添加单一事件响应:删除后添加。 更多...
 
template<typename _tRet , typename... _tParams>
GEvent< _tRet(_tParams...)> & AddUnique (GEvent< _tRet(_tParams...)> &evt, typename GEvent< _tRet(_tParams...)>::HandlerType &&h, EventPriority prior=DefaultEventPriority)
 
template<typename _type , typename _tRet , typename... _tParams>
GEvent< _tRet(_tParams...)> & AddUnique (GEvent< _tRet(_tParams...)> &evt, _type &&arg, EventPriority prior=DefaultEventPriority)
 
template<class _type , typename _tRet , typename... _tParams>
GEvent< _tRet(_tParams...)> & AddUnique (GEvent< _tRet(_tParams...)> &evt, _type &obj, _tRet(_type::*pm)(_tParams...), EventPriority prior=DefaultEventPriority)
 

变量

bool return true
 
yconstexpr char BOM_UTF_16LE [] {"\xFF\xFE"}
 Unicode 编码模式标记。 更多...
 
yconstexpr char BOM_UTF_16BE [] {"\xFE\xFF"}
 
yconstexpr char BOM_UTF_8 [] {"\xEF\xBB\xBF"}
 
yconstexpr char BOM_UTF_32LE [] {"\xFF\xFE\x00\x00"}
 
yconstexpr char BOM_UTF_32BE [] {"\x00\x00\xFE\xFF"}
 

类型定义说明

using YSLib::EventPriority = typedef u8

事件优先级。

自从
build 294

在文件 yevt.hpp204 行定义.

using YSLib::ResourceIndex = typedef decltype(__LINE__)

在文件 Shells.h46 行定义.

在文件 Shells.h47 行定义.

using YSLib::s16 = typedef std::int16_t

在文件 yadaptor.h72 行定义.

using YSLib::s32 = typedef std::int32_t

在文件 yadaptor.h73 行定义.

using YSLib::s64 = typedef std::int64_t

在文件 yadaptor.h74 行定义.

using YSLib::s8 = typedef std::int8_t

在文件 yadaptor.h71 行定义.

using YSLib::string = typedef GSStringTemplate<char>::basic_string

在文件 ycont.h164 行定义.

using YSLib::u16 = typedef std::uint16_t

在文件 yadaptor.h68 行定义.

using YSLib::u32 = typedef std::uint32_t

在文件 yadaptor.h69 行定义.

using YSLib::u64 = typedef std::uint64_t

在文件 yadaptor.h70 行定义.

using YSLib::u8 = typedef std::uint8_t

通用数据类型。

自从
build 245

在文件 yadaptor.h67 行定义.

using YSLib::ucs2string = typedef GSStringTemplate<CHRLib::ucs2_t>::basic_string

在文件 ycont.h167 行定义.

using YSLib::ucs4string = typedef GSStringTemplate<CHRLib::ucs4_t>::basic_string

在文件 ycont.h168 行定义.

using YSLib::vs16 = typedef volatile s16

在文件 yadaptor.h80 行定义.

using YSLib::vs32 = typedef volatile s32

在文件 yadaptor.h81 行定义.

using YSLib::vs64 = typedef volatile s64

在文件 yadaptor.h82 行定义.

using YSLib::vs8 = typedef volatile s8

在文件 yadaptor.h79 行定义.

using YSLib::vu16 = typedef volatile u16

在文件 yadaptor.h76 行定义.

using YSLib::vu32 = typedef volatile u32

在文件 yadaptor.h77 行定义.

using YSLib::vu64 = typedef volatile u64

在文件 yadaptor.h78 行定义.

using YSLib::vu8 = typedef volatile u8

在文件 yadaptor.h75 行定义.

函数说明

const ValueNode & YSLib::AccessNode ( const ValueNode::Container *  p_con,
const string &  name 
)

访问容器中的节点。

自从
build 399
build 433

在文件 ValueNode.cpp90 行定义.

参考 AccessNodePtr().

参考自 AccessNode() , 以及 YSLib::ValueNode::at().

函数调用图:

这是这个函数的调用关系图:

const ValueNode& YSLib::AccessNode ( const ValueNode::Container &  con,
const string &  name 
)
inline

在文件 ValueNode.h264 行定义.

参考 AccessNode().

函数调用图:

const ValueNode * YSLib::AccessNodePtr ( const ValueNode::Container &  con,
const string &  name 
)

访问容器中的节点指针。

自从
build 432

在文件 ValueNode.cpp98 行定义.

参考自 YSLib::ValueNode::AccessChildPtr(), AccessNode() , 以及 AccessNodePtr().

这是这个函数的调用关系图:

const ValueNode* YSLib::AccessNodePtr ( const ValueNode::Container *  p_con,
const string &  name 
)
inline

在文件 ValueNode.h278 行定义.

参考 AccessNodePtr().

函数调用图:

template<typename _type >
_type* YSLib::AccessPtr ( const ValueNode &  node)
inline

访问节点的指定类型对象指针。

自从
build 399

在文件 ValueNode.h239 行定义.

template<typename _type >
_type* YSLib::AccessPtr ( const ValueNode *  p_node)
inline

访问节点的指定类型对象指针。

自从
build 432

在文件 ValueNode.h249 行定义.

void YSLib::AddMIMEItems ( MIMEBiMapping &  m,
const ValueNode &  node,
MIMEBiMapping::MIMEType &&  pth = {} 
)

根据 NPLA1 节点内容增加 MIME 映射。

自从
build 450

在文件 ContentType.cpp62 行定义.

参考 IsPrefixedIndex().

参考自 FetchMIMEBiMapping().

函数调用图:

这是这个函数的调用关系图:

template<typename _tRet , typename... _tParams>
GEvent<_tRet(_tParams...)>& YSLib::AddUnique ( GEvent< _tRet(_tParams...)> &  evt,
const typename GEvent< _tRet(_tParams...)>::HandlerType &  h,
EventPriority  prior = DefaultEventPriority 
)
inline

添加单一事件响应:删除后添加。

自从
build 333

在文件 yevt.hpp481 行定义.

参考自 AddUnique().

这是这个函数的调用关系图:

template<typename _tRet , typename... _tParams>
GEvent<_tRet(_tParams...)>& YSLib::AddUnique ( GEvent< _tRet(_tParams...)> &  evt,
typename GEvent< _tRet(_tParams...)>::HandlerType &&  h,
EventPriority  prior = DefaultEventPriority 
)
inline

在文件 yevt.hpp489 行定义.

template<typename _type , typename _tRet , typename... _tParams>
GEvent<_tRet(_tParams...)>& YSLib::AddUnique ( GEvent< _tRet(_tParams...)> &  evt,
_type &&  arg,
EventPriority  prior = DefaultEventPriority 
)
inline

在文件 yevt.hpp496 行定义.

参考 AddUnique() , 以及 yforward.

函数调用图:

template<class _type , typename _tRet , typename... _tParams>
GEvent<_tRet(_tParams...)>& YSLib::AddUnique ( GEvent< _tRet(_tParams...)> &  evt,
_type &  obj,
_tRet(_type::*)(_tParams...)  pm,
EventPriority  prior = DefaultEventPriority 
)
inline
自从
build 413

在文件 yevt.hpp504 行定义.

参考 AddUnique().

函数调用图:

template<typename _type1 , typename _type2 >
yconstfn bool YSLib::AreEqualHeld ( const _type1 &  x,
const _type2 &  y 
)

判断动态泛型的持有值是否相等。

注解
不直接使用 ystdex::examiners::equal_examiner 判断, 因为可以有其它重载操作符。
自从
build 454

在文件 yobject.h130 行定义.

参考 ystdex::examiners::equal::are_equal().

函数调用图:

template<class _tMap , typename _tKey , typename _fCallable , typename... _tParams>
auto YSLib::CacheLookup ( _tMap &  cache,
const _tKey &  key,
_fCallable  init,
_tParams &&...  args 
) -> decltype((cache.begin()->second))

以指定的关键字查找作为缓存的无序关联容器, 若没有找到使用指定的可调用对象和参数初始化内容。

模板参数
_tMap映射类型,可以是 std::map 、 std::unordered_map 或 GMRUCache 等。
自从
build 460

在文件 Cache.hpp182 行定义.

参考 platform::Descriptions::Alert, YSLib::UI::args, YB_UNLIKELY , 以及 yforward.

参考自 YSLib::Drawing::Typeface::LookupBitmap().

这是这个函数的调用关系图:

template<typename _tOut >
void YSLib::ClearSequence ( _tOut  dst,
size_t  n 
)
inline

清除指定的连续对象。

前置条件
设类型 T 为 ystdex::remove_reference_t<decltype(*dst)>, 则应满足 std::is_pod<T> || (std::is_nothrow_default_constructible<T>::value && std::is_nothrow_assignable<T, T>::value)
注解
忽略空指针和零长度。
自从
build 322

在文件 ycutil.h344 行定义.

参考 YB_LIKELY.

参考自 YSLib::Drawing::ClearPixel().

这是这个函数的调用关系图:

template<typename _type >
yconstfn auto YSLib::CloneNonpolymorphic ( const _type &  p) -> decltype(&*p)

使用 new 复制指定指针指向的对象。

自从
build 240

在文件 ycutil.h467 行定义.

template<class _type >
auto YSLib::ClonePolymorphic ( const _type &  p) -> decltype(&*p)

使用 clone 成员函数复制指定指针指向的多态类类型对象。

前置条件
断言: std::is_polymorphic<decltype(*p)>::value 。
自从
build 240

在文件 ycutil.h479 行定义.

template<typename... _tParams>
unique_ptr<ValueNode::Container> YSLib::CollectNodes ( _tParams &&...  args)
inline

取指定值类型节点为成员的节点容器。

自从
build 399

在文件 ValueNode.h377 行定义.

参考 YSLib::UI::args, ystdex::seq_insert() , 以及 yforward.

参考自 PackNodes().

函数调用图:

这是这个函数的调用关系图:

template<typename... _tParams>
YSLib::DeclDerivedI ( GIHEvent  ,
ystdex::cloneable   
) const
override

事件处理器接口模板。

自从
build 333
build 409

标准事件处理器类模板。

注解
若使用仿函数,可以不满足 EqualityComparable 的接口,即 可使用返回 booloperator== ,但此模板类无法检查其语义正确性。
自从
build 333
YSLib::DeclDerivedI ( YF_API  ,
IValueHolder  ,
ystdex::any_ops::holder   
)

带等于接口的动态泛型持有者接口。

参见
ystdex::any_holder
自从
build 332
YSLib::DeclI ( YF_API  ,
IResource   
)

资源接口。

自从
build 174

图像资源。

自从
build 205

构造:使用指定位图指针、长和宽。

自从
build 433
build 433

在文件 yres.h42 行定义.

参考 DefGetter, implements, YF_API , 以及 ynothrow.

yconstexpr EventPriority YSLib::DefaultEventPriority ( 0x80  )

默认事件优先级。

自从
build 294
void YSLib::Execute ( GUIApplication &  app,
shared_ptr< Shell >  p_shl = make_shared<Shells::GUIShell>() 
)

执行程序主消息循环。

注解
对于宿主实现,设置退出所有窗口时向 YSLib 发送退出消息。
自从
build 399

在文件 GUIApplication.cpp142 行定义.

参考 Activate(), YSLib::GUIApplication::DealMessage() , 以及 YB_UNLIKELY.

参考自 main().

函数调用图:

这是这个函数的调用关系图:

Application & YSLib::FetchAppInstance ( )

取应用程序实例。

注解
保证在平台相关的全局资源初始化之后初始化此实例。
警告
初始化前不保证线程安全性。
自从
build 398

在文件 GUIApplication.cpp135 行定义.

参考 FetchGlobalInstance().

参考自 Activate(), YSLib::Shells::Shell::DefShlProc(), FetchShellHandle(), YSLib::Shells::Shell::IsActive(), IsNowShell() , 以及 PostMessage().

函数调用图:

这是这个函数的调用关系图:

Drawing::FontCache & YSLib::FetchDefaultFontCache ( )

取默认字体缓存。

自从
build 425

在文件 Initialization.cpp394 行定义.

参考 FetchRoot(), InitializeSystemFontCache(), YB_UNLIKELY, ydelete , 以及 ynew.

参考自 YSLib::Drawing::FetchDefaultTypeface(), FetchFontFamilyNames() , 以及 YSLib::Drawing::FontCache::GetDefaultTypefacePtr().

函数调用图:

这是这个函数的调用关系图:

shared_ptr< UI::TextList::ListType > YSLib::FetchFontFamilyNames ( )

取字型家族名称。

后置条件
结果是指向非空列表的非空指针。
自从
build 307

在文件 ShellHelper.cpp106 行定义.

参考 FetchDefaultFontCache() , 以及 ystdex::get_key.

函数调用图:

template<class _tApp >
GUIApplication & YSLib::FetchGlobalInstance ( )
inline

在文件 GUIApplication.h111 行定义.

参考自 FetchAppInstance() , 以及 RemoveGlobalTasks().

这是这个函数的调用关系图:

template<typename _type >
_type YSLib::FetchInstance ( )
inline

取指定类型的无参数构造的对象。

自从
build 241

在文件 ystorage.hpp43 行定义.

MIMEBiMapping & YSLib::FetchMIMEBiMapping ( )

取 MIME 类型名和文件扩展名双向映射对象。

自从
build 450

在文件 Initialization.cpp413 行定义.

参考 AddMIMEItems(), NPL::SContext::Analyze(), FetchRoot(), NPL::LoadNPLA1(), LoadNPLA1File(), YB_UNLIKELY, ydelete , 以及 ynew.

函数调用图:

template<typename _type >
const _type& YSLib::FetchPrototype ( )
inline

取指定类型的静态原型对象。

警告
初始化前非线程安全。
自从
build 240

在文件 ystorage.hpp69 行定义.

ValueNode & YSLib::FetchRoot ( )
yconstfn s8 YSLib::FetchSign ( int  a,
int  b = 0 
)

整数类型符号函数。

注解
a < b 则返回 -1 ,否则若 a = b 则返回 0 ,否则返回 1 。
自从
build 319

在文件 ycutil.h89 行定义.

参考自 FetchSignFromInterval() , 以及 YSLib::Drawing::PlotLineSeg().

这是这个函数的调用关系图:

template<typename _type >
yconstfn s8 YSLib::FetchSign ( const _type &  a,
const _type &  b = FetchZero<_type>() 
)

符号函数。

注解
a < b 则返回 -1 ,否则若 a = b 则返回 0 ,否则返回 1 。
自从
build 319

在文件 ycutil.h100 行定义.

yconstfn int YSLib::FetchSignFromInterval ( int  d,
int  a,
int  b 
)

判断整数 d 和以 [a, b](a ≤ b) 或 [b, a](a > b) 区间的关系。

返回
< 0 :d 在区间外;
= 0 :d 在区间端点上;
> 0 :d 在区间内。
注解
无精度修正。
自从
build 319

在文件 ycutil.h114 行定义.

参考 FetchSign().

函数调用图:

template<typename _type >
yconstfn int YSLib::FetchSignFromInterval ( const _type &  d,
const _type &  a,
const _type &  b 
)

判断 d 和以 [a, b](a ≤ b) 或 [b, a](a > b) 区间的关系。

返回
< 0 :d 在区间外;
= 0 :d 在区间端点上;
> 0 :d 在区间内。
注解
无精度修正。
自从
build 319

在文件 ycutil.h128 行定义.

参考 FetchSign().

函数调用图:

template<typename _type >
_type& YSLib::FetchStaticRef ( )
inline

取指定类型的静态默认对象。

警告
非线程安全。
自从
build 240

在文件 ystorage.hpp55 行定义.

template<typename _type >
yconstfn _type YSLib::FetchZero ( )

取指定类型的零元素。

自从
build 319

在文件 ycutil.h78 行定义.

void YSLib::HandleFatalError ( const FatalError &  e)

处理致命错误:显示错误信息并终止程序。

自从
build 342

在文件 Initialization.cpp145 行定义.

参考 platform::terminate(), platform::YDebugBegin() , 以及 platform::YDebugSetStatus().

参考自 main().

函数调用图:

这是这个函数的调用关系图:

void YSLib::InitializeEnviornment ( )

初始化环境。

自从
build 342

在文件 Initialization.cpp231 行定义.

参考 platform::terminate(), platform::YConsoleInit() , 以及 yconstexpr.

参考自 YSLib::GUIApplication::GUIApplication().

函数调用图:

这是这个函数的调用关系图:

ValueNode YSLib::InitializeInstalled ( )

初始化已安装项:检查安装完整性并载入主配置文件的配置项。

返回
被载入的配置项。
警告
不保证涉及 CHRLib 初始化的线程安全性。
自从
build 344

在文件 Initialization.cpp288 行定义.

参考 LoadConfiguration() , 以及 PackNodes().

参考自 FetchRoot().

函数调用图:

这是这个函数的调用关系图:

void YSLib::InitializeSystemFontCache ( Drawing::FontCache &  fc,
const string &  fong_file,
const string &  font_dir 
)

初始化系统字体缓存。

前置条件
默认字体缓存已初始化。
自从
build 398

加载默认字体文件路径和默认字体目录中的字型至默认字体缓存。

在文件 Initialization.cpp311 行定义.

参考 YSLib::Drawing::FontCache::GetDefaultTypefacePtr(), YSLib::Drawing::FontCache::InitializeDefaultTypeface(), ystdex::path_norm< _type >::is_self(), YSLib::Drawing::FontCache::LoadTypefaces() , 以及 YSLib::UI::name.

参考自 FetchDefaultFontCache().

函数调用图:

这是这个函数的调用关系图:

template<typename _type >
bool YSLib::IsInClosedInterval ( _type  i,
_type  b 
)
inline

判断 i 是否在闭区间 [FetchZero<_type>(), b] 中。

前置条件
断言: FetchZero<_type>() < b
自从
build 470

在文件 ycutil.h166 行定义.

参考 YAssert.

参考自 YSLib::Drawing::HSLToColor().

这是这个函数的调用关系图:

template<typename _type >
bool YSLib::IsInClosedInterval ( _type  i,
_type  a,
_type  b 
)
inline

判断 i 是否在闭区间 [a, b] 中。

前置条件
断言: a < b
自从
build 470

在文件 ycutil.h179 行定义.

参考 YAssert.

template<typename _type >
bool YSLib::IsInInterval ( _type  i,
_type  b 
)
inline

判断 i 是否在左闭右开区间 [FetchZero<_type>(), b) 中。

前置条件
断言: FetchZero<_type>() < b
自从
build 319

在文件 ycutil.h140 行定义.

参考 YAssert.

参考自 YReader::DeclResource(), YSLib::UI::TextBox::DrawClippedText(), YSLib::UI::Menu::IsItemEnabled(), YSLib::UI::Menu::operator-=() , 以及 YSLib::UI::Menu::SetItemEnabled().

这是这个函数的调用关系图:

template<typename _type >
bool YSLib::IsInInterval ( _type  i,
_type  a,
_type  b 
)
inline

判断 i 是否在左闭右开区间 [a, b) 中。

前置条件
断言: a < b
自从
build 319

在文件 ycutil.h153 行定义.

参考 YAssert.

template<typename _type >
bool YSLib::IsInOpenInterval ( _type  i,
_type  b 
)
inline

判断 i 是否在开区间 (FetchZero<_type>(), b) 内。

前置条件
断言: FetchZero<_type>() < b
自从
build 319

在文件 ycutil.h192 行定义.

参考 YAssert.

template<typename _type >
bool YSLib::IsInOpenInterval ( _type  i,
_type  a,
_type  b 
)
inline

判断 i 是否在开区间 (a, b) 内。

前置条件
断言: a < b
自从
build 319

在文件 ycutil.h205 行定义.

参考 YAssert.

bool YSLib::IsPrefixedIndex ( const string &  name,
char  prefix = '$' 
)

判断字符串是否是一个指定字符和非负整数的组合。

注解
要求整数能被 unsigned long 表示。
自从
build 450

在文件 ValueNode.cpp107 行定义.

参考 ystdex::to_string().

参考自 AddMIMEItems().

函数调用图:

这是这个函数的调用关系图:

ValueNode YSLib::LoadConfiguration ( bool  show_info = {})

载入默认配置。

返回
读取的配置。
参见
LoadNPLA1File
自从
build 344

在文件 Initialization.cpp211 行定义.

参考 CONF_PATH, DATA_DIRECTORY, DEF_FONT_DIRECTORY, DEF_FONT_PATH, LoadNPLA1File() , 以及 PackNodes().

参考自 InitializeInstalled() , 以及 YReader::ShlReader::LoadGlobalConfiguration().

函数调用图:

这是这个函数的调用关系图:

ValueNode YSLib::LoadNPLA1File ( const char *  disp,
const char *  path,
ValueNode(*)()  creator,
bool  show_info = {} 
)

载入 NPLA1 配置文件。

参数
show_info是否在标准输出中显示信息。
返回
读取的配置。
注解
预设行为、配置文件和配置项参考 YSLib.txt 。
自从
build 450

在文件 Initialization.cpp159 行定义.

参考 ReadConfiguration() , 以及 platform::ufexists().

参考自 FetchMIMEBiMapping() , 以及 LoadConfiguration().

函数调用图:

这是这个函数的调用关系图:

template<typename _type >
bool YSLib::operator!= ( const shared_ptr< _type > &  sp,
_type *  p 
)
inline

比较: shared_ptr 左值和内建指针类型的不等关系。

自从
build 209

在文件 yref.hpp107 行定义.

template<typename _type1 , typename _type2 >
bool YSLib::operator!= ( const weak_ptr< _type1 > &  x,
const weak_ptr< _type2 > &  y 
)
inline

比较: weak_ptr 不等关系。

注解
注意和 shared_ptr 比较托管对象指针的语义不同。
自从
build 209

在文件 yref.hpp118 行定义.

template<typename _type >
bool YSLib::operator== ( const shared_ptr< _type > &  sp,
_type *  p 
)
inline

比较: shared_ptr 和内建指针类型的相等关系。

自从
build 209

在文件 yref.hpp85 行定义.

template<typename _type1 , typename _type2 >
bool YSLib::operator== ( const weak_ptr< _type1 > &  x,
const weak_ptr< _type2 > &  y 
)
inline

比较: weak_ptr 相等关系。

注解
注意和 shared_ptr 比较托管对象指针的语义不同。
自从
build 454

在文件 yref.hpp96 行定义.

template<typename _tString , typename... _tParams>
ValueNode YSLib::PackNodes ( _tString &&  name,
_tParams &&...  args 
)
inline

取以指定分量为参数对应初始化得到的值类型节点为子节点的值类型节点。

自从
build 338

在文件 ValueNode.h391 行定义.

参考 YSLib::UI::args, CollectNodes(), YSLib::UI::name, UnpackToNode() , 以及 yforward.

参考自 InitializeInstalled() , 以及 LoadConfiguration().

函数调用图:

这是这个函数的调用关系图:

void YSLib::PostMessage ( const Message &  msg,
Messaging::Priority  prior 
)

全局默认队列消息发送函数。

警告
应用程序实例初始化前不保证线程安全性。
自从
build 297
build 317

在文件 yapp.cpp75 行定义.

参考 FetchAppInstance().

参考自 PostMessage().

函数调用图:

这是这个函数的调用关系图:

void YSLib::PostMessage ( Messaging::ID  id,
Messaging::Priority  prior,
const ValueObject &  vo = {} 
)
inline
自从
build 320

在文件 yapp.h185 行定义.

void YSLib::PostMessage ( Messaging::ID  id,
Messaging::Priority  prior,
ValueObject &&  c 
)
inline
自从
build 320

在文件 yapp.h192 行定义.

参考 CHRLib::c , 以及 PostMessage().

函数调用图:

template<Messaging::MessageID _vID>
void YSLib::PostMessage ( Messaging::Priority  prior,
const typename Messaging::SMessageMap< _vID >::TargetType &  target 
)
inline
自从
build 320

在文件 yapp.h200 行定义.

参考 PostMessage().

函数调用图:

void YSLib::PostQuitMessage ( int  nExitCode,
Messaging::Priority  p = 0xF0 
)

以优先级 p 发起 Shell 终止请求,返回 nExitCode。

在文件 yapp.cpp83 行定义.

参考自 platform_ex::Windows::HostWindow::HostWindow().

这是这个函数的调用关系图:

template<typename _fCallable >
void YSLib::PostTask ( _fCallable &&  f,
Messaging::Priority  prior = Messaging::NormalPriority 
)
inline

通过消息队列部署后任务。

自从
build 448

在文件 Task.h43 行定义.

参考 YSLib::UI::f , 以及 yforward.

参考自 YReader::ShlReader::Exit(), YReader::ShlReader::OnInput() , 以及 YSLib::Messaging::Renew().

这是这个函数的调用关系图:

ValueNode YSLib::ReadConfiguration ( TextFile &  tf)

从文本文件中读取配置。

异常
LoggedEvent文件无效导致的读取失败。
自从
build 344

在文件 Initialization.cpp186 行定义.

参考 YSLib::TextFile::Encoding, CHRLib::CharSet::UTF_8(), YB_LIKELY , 以及 YB_UNLIKELY.

参考自 LoadNPLA1File().

函数调用图:

这是这个函数的调用关系图:

template<typename _type >
void YSLib::RestrictInClosedInterval ( _type &  v,
const _type &  a,
const _type &  b 
)

约束 v 在闭区间 [a, b] 中。

前置条件
断言: !(b < a)
后置条件
!(i < a || b < i)
自从
build 448

在文件 ycutil.h266 行定义.

参考 v , 以及 YAssert.

template<typename _type >
void YSLib::RestrictInInterval ( _type &  i,
int  a,
int  b 
)

约束整数 i 在左闭右开区间 [a, b) 中。

前置条件
断言: a < b
后置条件
!(i < a) && i < b
自从
build 319

在文件 ycutil.h283 行定义.

参考 YAssert.

参考自 YSLib::UI::DrawTrackBackground(), YSLib::Drawing::PlotHLineSeg() , 以及 YSLib::Drawing::PlotVLineSeg().

这是这个函数的调用关系图:

template<typename _type >
void YSLib::RestrictLessEqual ( _type &  a,
_type &  b 
)
inline

约束关系:a ≤ b 。

后置条件
a <= b
自从
build 319

在文件 ycutil.h327 行定义.

参考 ystdex::swap().

参考自 YSLib::Drawing::PlotHLineSeg() , 以及 YSLib::Drawing::PlotVLineSeg().

函数调用图:

这是这个函数的调用关系图:

template<typename _type >
void YSLib::RestrictUnsigned ( _type &  u,
unsigned  b 
)

约束无符号整数 u 在左闭右开区间 [0, b) 中。

前置条件
断言: b != FetchZero<_type>()
后置条件
!(u < FetchZero<_type>()) && u < b
自从
build 319

在文件 ycutil.h313 行定义.

参考 YAssert.

template<typename _type >
void YSLib::RestrictUnsignedStrict ( _type &  u,
unsigned  b 
)

约束无符号整数 u 在区间上界 b 内。

后置条件
!(b < u)
自从
build 319

在文件 ycutil.h299 行定义.

参考自 YSLib::UI::InvalidateSelected().

这是这个函数的调用关系图:

void YSLib::SaveConfiguration ( const ValueNode &  node)

保存默认配置。

返回
是否保存成功。
自从
build 344

在文件 Initialization.cpp222 行定义.

参考 CONF_PATH , 以及 WriteConfiguration().

参考自 YReader::ShlReader::SaveGlobalConfiguration().

函数调用图:

这是这个函数的调用关系图:

template<typename _tString , typename... _tParams>
ValueNode YSLib::StringifyToNode ( _tString &&  name,
_tParams &&...  args 
)
inline

取指定名称和转换为字符串的值类型节点。

注解
使用非限定 to_string 转换。
自从
build 344

在文件 ValueNode.h337 行定义.

参考 YSLib::UI::args, YSLib::UI::name, ystdex::to_string() , 以及 yforward.

函数调用图:

template<typename _type >
size_t YSLib::SwitchAddedInterval ( _type  v,
const _type *  a,
size_t  n 
)

计算满足指定的值 v 在区间 [b(i), b(i + 1)) 内的最小的 i ; 其中 b(i) 是 a[i] 前 i 项的和。

前置条件
断言: a
断言: n != 0
断言: !(v < *a)
自从
build 319

在文件 ycutil.h244 行定义.

参考 platform_ex::Windows::s, v , 以及 YAssert.

template<typename _type >
size_t YSLib::SwitchInterval ( _type  v,
const _type *  a,
size_t  n 
)

计算满足指定的值 v 在区间 [a[i], a[i + 1]) 内最小的 i 。

前置条件
断言: a
断言: n != 0
断言: !(v < *a)
自从
build 319

在文件 ycutil.h221 行定义.

参考 v , 以及 YAssert.

void YSLib::Uninitialize ( )

反初始化。

警告
不保证线程安全性。
自从
build 324

释放初始化的资源。

在文件 Initialization.cpp366 行定义.

参考 YB_LIKELY.

参考自 YSLib::GUIApplication::~GUIApplication().

这是这个函数的调用关系图:

const ValueNode& YSLib::UnpackToNode ( const ValueNode &  arg)
inline

从引用参数取值类型节点:返回自身。

自从
build 338

在文件 ValueNode.h348 行定义.

参考自 PackNodes().

这是这个函数的调用关系图:

ValueNode&& YSLib::UnpackToNode ( ValueNode &&  arg)
inline

在文件 ValueNode.h353 行定义.

template<class _tPack >
ValueNode YSLib::UnpackToNode ( _tPack &&  pk)
inline

从参数取以指定分量为初始化参数的值类型节点。

注解
取分量同 std::get ,但使用 ADL 。仅取前两个分量。
自从
build 338

在文件 ValueNode.h365 行定义.

参考 ystdex::decay_copy() , 以及 yforward.

函数调用图:

void YSLib::WriteConfiguration ( TextFile &  tf,
const ValueNode &  node 
)

写入配置至文本文件。

异常
LoggedEvent文件无效导致的写入失败。
自从
build 344

在文件 Initialization.cpp203 行定义.

参考 YSLib::ValueNode::Value , 以及 YB_UNLIKELY.

参考自 SaveConfiguration().

这是这个函数的调用关系图:

YF_API YSLib::yimpl ( GUIApplication &  )

取全局应用程序实例。

前置条件
内部断言存在应用程序实例。
注解
需要保证应用程序实例初始化后才能使用。
自从
build 398

变量说明

yconstexpr char YSLib::BOM_UTF_16BE[] {"\xFE\xFF"}

在文件 TextFile.h48 行定义.

参考自 YSLib::TextFile::TextFile().

yconstexpr char YSLib::BOM_UTF_16LE[] {"\xFF\xFE"}

Unicode 编码模式标记。

Unicode Encoding Scheme Signatures BOM(byte-order mark ,字节顺序标记)常量。

注解
在 Unicode 3.2 前作为零宽无间断空格字符在对应字符集的编码单字节序列。
适用于未明确字节序或字符集的流。
自从
build 297

在文件 TextFile.h47 行定义.

参考自 YSLib::TextFile::TextFile().

yconstexpr char YSLib::BOM_UTF_32BE[] {"\x00\x00\xFE\xFF"}

在文件 TextFile.h51 行定义.

参考自 YSLib::TextFile::TextFile().

yconstexpr char YSLib::BOM_UTF_32LE[] {"\xFF\xFE\x00\x00"}

在文件 TextFile.h50 行定义.

参考自 YSLib::TextFile::TextFile().

yconstexpr char YSLib::BOM_UTF_8[] {"\xEF\xBB\xBF"}

在文件 TextFile.h49 行定义.

参考自 YSLib::TextFile::TextFile().

bool return YSLib::true

在文件 DSMain.cpp177 行定义.