aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md5
-rwxr-xr-xdocs/markdown/snippets/get_unquoted.md4
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index eee4405..92c8a1f 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1556,6 +1556,11 @@ page](Configuration.md) It has three methods:
value has not been set returns `default_value` if it is defined
*(added 0.38.0)* and errors out if not
+- `get_unquoted(varname, default_value)` returns the value of `varname`
+ but without surrounding double quotes (`"`). If the value has not been
+ set returns `default_value` if it is defined and errors out if not.
+ Available since 0.43.0
+
- `has(varname)`, returns `true` if the specified variable is set
- `merge_from(other)` takes as argument a different configuration data
diff --git a/docs/markdown/snippets/get_unquoted.md b/docs/markdown/snippets/get_unquoted.md
new file mode 100755
index 0000000..5f8969d
--- /dev/null
+++ b/docs/markdown/snippets/get_unquoted.md
@@ -0,0 +1,4 @@
+# `get_unquoted()` mehod for the `configuration` data object
+
+New convenience method that allow reusing a variable value
+defined quoted. Useful in C for config.h strings for example.