improved TextInputStream

This commit is contained in:
2023-07-13 21:11:33 +08:00
parent 8d829b9690
commit dd57965556
2 changed files with 19 additions and 6 deletions

View File

@@ -59,6 +59,7 @@ namespace hgl
ByteOrderMask bom; ///<BOM头
ByteOrderMask default_bom; ///<缺省BOM在没有BOM头时使用
ParseCallback *callback; ///<回调函数
private:
@@ -75,6 +76,8 @@ namespace hgl
SAFE_CLEAR_ARRAY(buffer);
}
void SetDefaultBOM(const ByteOrderMask &bo){default_bom=bo;} ///<设置缺省BOM头}
/**
* 运行并解晰文本
* @param pc 解晰结果回调函数