mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
Document my changes from Friday
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -223,6 +223,13 @@ static struct ast_custom_function filter_function = {
|
|||||||
.synopsis = "Filter the string to include only the allowed characters",
|
.synopsis = "Filter the string to include only the allowed characters",
|
||||||
.syntax = "FILTER(<allowed-chars>,<string>)",
|
.syntax = "FILTER(<allowed-chars>,<string>)",
|
||||||
.read = filter,
|
.read = filter,
|
||||||
|
.desc =
|
||||||
|
"Permits all characters listed in <allowed-chars>, filtering all others out.\n"
|
||||||
|
"In addition to literally listing the characters, you may also use ranges of\n"
|
||||||
|
"characters (delimited by a '-'), as well as hexadecimal characters started\n"
|
||||||
|
"with a \\x (i.e. \\x20) and octal characters started with \\0 (i.e. \\040).\n"
|
||||||
|
"Also, \\t, \\n, and \\r are recognized. If you want a literal '-' character,\n"
|
||||||
|
"simply prefix it with a '\\'\n",
|
||||||
};
|
};
|
||||||
|
|
||||||
static int regex(struct ast_channel *chan, const char *cmd, char *parse, char *buf,
|
static int regex(struct ast_channel *chan, const char *cmd, char *parse, char *buf,
|
||||||
|
Reference in New Issue
Block a user