Skip to content
wpferguson edited this page Jun 14, 2020 · 1 revision

DTUTILS.STRING

NAME

dtutils.string

SYNOPSIS

a library of string utilities for use in darktable lua scripts

USAGE

local ds = require "lib/dtutils.string"

DESCRIPTION

This library contains string manipulation routines to aid in building darktable lua scripts.

RETURN VALUE

ds - library - the darktable lua string library

FUNCTIONS

escape characters for xml documents

check if a string has been sanitized

surround a string in quotes making it safe to pass as an argument

escape lua 'magic' characters from a pattern string

strip accents from characters

encode a string in a websafe manner

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

COPYRIGHT

Copyright (c) 2016 Bill Ferguson [email protected]

Clone this wiki locally