From 777cd24063cc9991defef275b5c13637a9072049 Mon Sep 17 00:00:00 2001 From: Martin Blanchard Date: Fri, 15 Sep 2017 22:43:01 +0200 Subject: get-unquoted: Mention get_unquoted() in reference manual --- docs/markdown/Reference-manual.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 1bed44d..9d9111e 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1522,6 +1522,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 -- cgit v1.1 From 26e731c7caf575799e88fe393ba8c2a3a7c42073 Mon Sep 17 00:00:00 2001 From: Martin Blanchard Date: Fri, 15 Sep 2017 23:24:15 +0200 Subject: get-unquoted: Queue a release note entry mentioning the new method --- docs/markdown/snippets/get_unquoted.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 docs/markdown/snippets/get_unquoted.md (limited to 'docs/markdown') 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. -- cgit v1.1