mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-21 10:28:50 +08:00
📝 unify code style of ./stl ./test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user