feat(cpp/inih): add inih parser_2

This commit is contained in:
morpingsss
2024-07-12 12:03:15 +08:00
parent 39533e4209
commit be55ea2b0b
5 changed files with 4499 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgoexamples/cpp/inih"
"github.com/goplus/llgo/cpp/inih"
)
/*
@@ -38,6 +38,8 @@ func main() {
}
isDatabaseEnabled := reader.GetBoolean(inih.Str("database"), inih.Str("enabled"), false)
port := reader.GetInteger(inih.Str("database"), inih.Str("port"), 0)
s := reader.GetString(inih.Str("database"), inih.Str("server"), inih.Str("unknown")).String()
println("s :", s)
println("isDatabaseEnabled:", isDatabaseEnabled, "port:", port)
demo2()