📝 unify code style of ./stl ./test

This commit is contained in:
ValKmjolnir
2022-07-02 13:53:50 +08:00
parent c993c77b78
commit 8b8fb79013
20 changed files with 200 additions and 375 deletions
+1 -6
View File
@@ -1,9 +1,7 @@
#ifndef __NASAL_H__
#define __NASAL_H__
#define __nasver "10.0"
#include <unistd.h>
#include <cstdint>
@@ -150,10 +148,7 @@ int utf8_hdchk(char head)
std::string chrhex(const char c)
{
std::string res="";
res+="0123456789abcdef"[(c&0xf0)>>4];
res+="0123456789abcdef"[c&0x0f];
return res;
return {"0123456789abcdef"[(c&0xf0)>>4],"0123456789abcdef"[c&0x0f]};
}
std::string rawstr(const std::string& str)