From f7712fd499d2dd6b88e52276dc10c04e6d15bcc4 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Tue, 25 Jul 2023 22:17:04 +0800 Subject: [PATCH] added WriteLine at TextOutputStream<> --- inc/hgl/io/TextOutputStream.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/hgl/io/TextOutputStream.h b/inc/hgl/io/TextOutputStream.h index fb6cb26..fad23b9 100644 --- a/inc/hgl/io/TextOutputStream.h +++ b/inc/hgl/io/TextOutputStream.h @@ -78,6 +78,14 @@ namespace hgl return WriteLineEnd(); } + template + bool WriteLine(const N *str) + { + if(!str||!*str)return(false); + + return WriteLine(str,hgl::strlen(str)); + } + template bool WriteLine(const String &str) {