added WriteLine at TextOutputStream<>

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-07-25 22:17:04 +08:00
parent ab739128d5
commit f7712fd499

View File

@ -78,6 +78,14 @@ namespace hgl
return WriteLineEnd(); return WriteLineEnd();
} }
template<typename N>
bool WriteLine(const N *str)
{
if(!str||!*str)return(false);
return WriteLine(str,hgl::strlen(str));
}
template<typename N> template<typename N>
bool WriteLine(const String<N> &str) bool WriteLine(const String<N> &str)
{ {