Fri Aug 24 02:25:40 2007

Asterisk developer's documentation


func_strings.c File Reference

String manipulation dialplan functions. More...

#include "asterisk.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <regex.h>
#include <ctype.h>
#include "asterisk/module.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/logger.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"
#include "asterisk/localtime.h"

Include dependency graph for func_strings.c:

Go to the source code of this file.

Defines

#define SPRINTF_CONVERSION   4
#define SPRINTF_FLAG   0
#define SPRINTF_LENGTH   3
#define SPRINTF_PRECISION   2
#define SPRINTF_WIDTH   1

Functions

static int acf_sprintf (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int acf_strftime (struct ast_channel *chan, char *cmd, char *parse, char *buf, size_t len)
static int acf_strptime (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int array (struct ast_channel *chan, char *cmd, char *var, const char *value)
 AST_MODULE_INFO_STANDARD (ASTERISK_GPL_KEY,"String handling dialplan functions")
static int filter (struct ast_channel *chan, char *cmd, char *parse, char *buf, size_t len)
static int function_eval (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int function_fieldqty (struct ast_channel *chan, char *cmd, char *parse, char *buf, size_t len)
static int function_tolower (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int function_toupper (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int keypadhash (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int len (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int load_module (void)
static int quote (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static int regex (struct ast_channel *chan, char *cmd, char *parse, char *buf, size_t len)
static int unload_module (void)

Variables

static struct ast_custom_function array_function
static struct ast_custom_function eval_function
static struct ast_custom_function fieldqty_function
static struct ast_custom_function filter_function
static struct ast_custom_function keypadhash_function
static struct ast_custom_function len_function
static struct ast_custom_function quote_function
static struct ast_custom_function regex_function
static struct ast_custom_function sprintf_function
static struct ast_custom_function strftime_function
static struct ast_custom_function strptime_function
static struct ast_custom_function tolower_function
static struct ast_custom_function toupper_function


Detailed Description

String manipulation dialplan functions.

Author:
Tilghman Lesher

Anothony Minessale II

Definition in file func_strings.c.


Define Documentation

#define SPRINTF_CONVERSION   4

Referenced by acf_sprintf().

#define SPRINTF_FLAG   0

Referenced by acf_sprintf().

#define SPRINTF_LENGTH   3

Referenced by acf_sprintf().

#define SPRINTF_PRECISION   2

Referenced by acf_sprintf().

#define SPRINTF_WIDTH   1

Referenced by acf_sprintf().


Function Documentation

static int acf_sprintf ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 234 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_log(), AST_STANDARD_APP_ARGS, format, LOG_ERROR, SPRINTF_CONVERSION, SPRINTF_FLAG, SPRINTF_LENGTH, SPRINTF_PRECISION, SPRINTF_WIDTH, and var.

00235 {
00236 #define SPRINTF_FLAG 0
00237 #define SPRINTF_WIDTH   1
00238 #define SPRINTF_PRECISION  2
00239 #define SPRINTF_LENGTH  3
00240 #define SPRINTF_CONVERSION 4
00241    int i, state = -1, argcount = 0;
00242    char *formatstart = NULL, *bufptr = buf;
00243    char formatbuf[256] = "";
00244    int tmpi;
00245    double tmpd;
00246    AST_DECLARE_APP_ARGS(arg,
00247             AST_APP_ARG(format);
00248             AST_APP_ARG(var)[100];
00249    );
00250 
00251    AST_STANDARD_APP_ARGS(arg, data);
00252 
00253    /* Scan the format, converting each argument into the requisite format type. */
00254    for (i = 0; arg.format[i]; i++) {
00255       switch (state) {
00256       case SPRINTF_FLAG:
00257          if (strchr("#0- +'I", arg.format[i]))
00258             break;
00259          state = SPRINTF_WIDTH;
00260       case SPRINTF_WIDTH:
00261          if (arg.format[i] >= '0' && arg.format[i] <= '9')
00262             break;
00263 
00264          /* Next character must be a period to go into a precision */
00265          if (arg.format[i] == '.') {
00266             state = SPRINTF_PRECISION;
00267          } else {
00268             state = SPRINTF_LENGTH;
00269             i--;
00270          }
00271          break;
00272       case SPRINTF_PRECISION:
00273          if (arg.format[i] >= '0' && arg.format[i] <= '9')
00274             break;
00275          state = SPRINTF_LENGTH;
00276       case SPRINTF_LENGTH:
00277          if (strchr("hl", arg.format[i])) {
00278             if (arg.format[i + 1] == arg.format[i])
00279                i++;
00280             state = SPRINTF_CONVERSION;
00281             break;
00282          } else if (strchr("Lqjzt", arg.format[i]))
00283             state = SPRINTF_CONVERSION;
00284             break;
00285          state = SPRINTF_CONVERSION;
00286       case SPRINTF_CONVERSION:
00287          if (strchr("diouxXc", arg.format[i])) {
00288             /* Integer */
00289 
00290             /* Isolate this format alone */
00291             ast_copy_string(formatbuf, formatstart, sizeof(formatbuf));
00292             formatbuf[&arg.format[i] - formatstart + 1] = '\0';
00293 
00294             /* Convert the argument into the required type */
00295             if (sscanf(arg.var[argcount++], "%d", &tmpi) != 1) {
00296                ast_log(LOG_ERROR, "Argument '%s' is not an integer number for format '%s'\n", arg.var[argcount - 1], formatbuf);
00297                goto sprintf_fail;
00298             }
00299 
00300             /* Format the argument */
00301             snprintf(bufptr, buf + len - bufptr, formatbuf, tmpi);
00302 
00303             /* Update the position of the next parameter to print */
00304             bufptr = strchr(buf, '\0');
00305          } else if (strchr("eEfFgGaA", arg.format[i])) {
00306             /* Double */
00307 
00308             /* Isolate this format alone */
00309             ast_copy_string(formatbuf, formatstart, sizeof(formatbuf));
00310             formatbuf[&arg.format[i] - formatstart + 1] = '\0';
00311 
00312             /* Convert the argument into the required type */
00313             if (sscanf(arg.var[argcount++], "%lf", &tmpd) != 1) {
00314                ast_log(LOG_ERROR, "Argument '%s' is not a floating point number for format '%s'\n", arg.var[argcount - 1], formatbuf);
00315                goto sprintf_fail;
00316             }
00317 
00318             /* Format the argument */
00319             snprintf(bufptr, buf + len - bufptr, formatbuf, tmpd);
00320 
00321             /* Update the position of the next parameter to print */
00322             bufptr = strchr(buf, '\0');
00323          } else if (arg.format[i] == 's') {
00324             /* String */
00325 
00326             /* Isolate this format alone */
00327             ast_copy_string(formatbuf, formatstart, sizeof(formatbuf));
00328             formatbuf[&arg.format[i] - formatstart + 1] = '\0';
00329 
00330             /* Format the argument */
00331             snprintf(bufptr, buf + len - bufptr, formatbuf, arg.var[argcount++]);
00332 
00333             /* Update the position of the next parameter to print */
00334             bufptr = strchr(buf, '\0');
00335          } else if (arg.format[i] == '%') {
00336             /* Literal data to copy */
00337             *bufptr++ = arg.format[i];
00338          } else {
00339             /* Not supported */
00340 
00341             /* Isolate this format alone */
00342             ast_copy_string(formatbuf, formatstart, sizeof(formatbuf));
00343             formatbuf[&arg.format[i] - formatstart + 1] = '\0';
00344 
00345             ast_log(LOG_ERROR, "Format type not supported: '%s' with argument '%s'\n", formatbuf, arg.var[argcount++]);
00346             goto sprintf_fail;
00347          }
00348          state = -1;
00349          break;
00350       default:
00351          if (arg.format[i] == '%') {
00352             state = SPRINTF_FLAG;
00353             formatstart = &arg.format[i];
00354             break;
00355          } else {
00356             /* Literal data to copy */
00357             *bufptr++ = arg.format[i];
00358          }
00359       }
00360    }
00361    return 0;
00362 sprintf_fail:
00363    return -1;
00364 }

static int acf_strftime ( struct ast_channel chan,
char *  cmd,
char *  parse,
char *  buf,
size_t  len 
) [static]

Definition at line 427 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_get_time_t(), ast_localtime(), ast_log(), AST_STANDARD_APP_ARGS, format, and LOG_WARNING.

00429 {
00430    AST_DECLARE_APP_ARGS(args,
00431               AST_APP_ARG(epoch);
00432               AST_APP_ARG(timezone);
00433               AST_APP_ARG(format);
00434    );
00435    time_t epochi;
00436    struct tm tm;
00437 
00438    buf[0] = '\0';
00439 
00440    AST_STANDARD_APP_ARGS(args, parse);
00441 
00442    ast_get_time_t(args.epoch, &epochi, time(NULL), NULL);
00443    ast_localtime(&epochi, &tm, args.timezone);
00444 
00445    if (!args.format)
00446       args.format = "%c";
00447 
00448    if (!strftime(buf, len, args.format, &tm))
00449       ast_log(LOG_WARNING, "C function strftime() output nothing?!!\n");
00450 
00451    buf[len - 1] = '\0';
00452 
00453    return 0;
00454 }

static int acf_strptime ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 463 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_log(), ast_mktime(), AST_STANDARD_APP_ARGS, ast_strlen_zero(), format, LOG_ERROR, and LOG_WARNING.

00465 {
00466    AST_DECLARE_APP_ARGS(args,
00467               AST_APP_ARG(timestring);
00468               AST_APP_ARG(timezone);
00469               AST_APP_ARG(format);
00470    );
00471    struct tm time;
00472 
00473    memset(&time, 0, sizeof(struct tm));
00474 
00475    buf[0] = '\0';
00476 
00477    if (!data) {
00478       ast_log(LOG_ERROR,
00479             "Asterisk function STRPTIME() requires an argument.\n");
00480       return -1;
00481    }
00482 
00483    AST_STANDARD_APP_ARGS(args, data);
00484 
00485    if (ast_strlen_zero(args.format)) {
00486       ast_log(LOG_ERROR,
00487             "No format supplied to STRPTIME(<timestring>|<timezone>|<format>)");
00488       return -1;
00489    }
00490 
00491    if (!strptime(args.timestring, args.format, &time)) {
00492       ast_log(LOG_WARNING, "C function strptime() output nothing?!!\n");
00493    } else {
00494       snprintf(buf, len, "%d", (int) ast_mktime(&time, args.timezone));
00495    }
00496 
00497    return 0;
00498 }

static int array ( struct ast_channel chan,
char *  cmd,
char *  var,
const char *  value 
) [static]

Definition at line 170 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_log(), AST_NONSTANDARD_APP_ARGS, AST_STANDARD_APP_ARGS, ast_strdupa, LOG_DEBUG, option_debug, and pbx_builtin_setvar_helper().

00172 {
00173    AST_DECLARE_APP_ARGS(arg1,
00174               AST_APP_ARG(var)[100];
00175    );
00176    AST_DECLARE_APP_ARGS(arg2,
00177               AST_APP_ARG(val)[100];
00178    );
00179    char *value2;
00180    int i;
00181 
00182    value2 = ast_strdupa(value);
00183    if (!var || !value2)
00184       return -1;
00185 
00186    /* The functions this will generally be used with are SORT and ODBC_*, which
00187     * both return comma-delimited lists.  However, if somebody uses literal lists,
00188     * their commas will be translated to vertical bars by the load, and I don't
00189     * want them to be surprised by the result.  Hence, we prefer commas as the
00190     * delimiter, but we'll fall back to vertical bars if commas aren't found.
00191     */
00192    if (option_debug)
00193       ast_log(LOG_DEBUG, "array (%s=%s)\n", var, value2);
00194    if (strchr(var, ','))
00195       AST_NONSTANDARD_APP_ARGS(arg1, var, ',');
00196    else
00197       AST_STANDARD_APP_ARGS(arg1, var);
00198 
00199    if (strchr(value2, ','))
00200       AST_NONSTANDARD_APP_ARGS(arg2, value2, ',');
00201    else
00202       AST_STANDARD_APP_ARGS(arg2, value2);
00203 
00204    for (i = 0; i < arg1.argc; i++) {
00205       if (option_debug)
00206          ast_log(LOG_DEBUG, "array set value (%s=%s)\n", arg1.var[i],
00207             arg2.val[i]);
00208       if (i < arg2.argc) {
00209          pbx_builtin_setvar_helper(chan, arg1.var[i], arg2.val[i]);
00210       } else {
00211          /* We could unset the variable, by passing a NULL, but due to
00212           * pushvar semantics, that could create some undesired behavior. */
00213          pbx_builtin_setvar_helper(chan, arg1.var[i], "");
00214       }
00215    }
00216 
00217    return 0;
00218 }

AST_MODULE_INFO_STANDARD ( ASTERISK_GPL_KEY  ,
"String handling dialplan functions"   
)

static int filter ( struct ast_channel chan,
char *  cmd,
char *  parse,
char *  buf,
size_t  len 
) [static]

Definition at line 88 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_log(), AST_STANDARD_APP_ARGS, and LOG_ERROR.

00090 {
00091    AST_DECLARE_APP_ARGS(args,
00092               AST_APP_ARG(allowed);
00093               AST_APP_ARG(string);
00094    );
00095    char *outbuf = buf;
00096 
00097    AST_STANDARD_APP_ARGS(args, parse);
00098 
00099    if (!args.string) {
00100       ast_log(LOG_ERROR, "Usage: FILTER(<allowed-chars>|<string>)\n");
00101       return -1;
00102    }
00103 
00104    for (; *(args.string) && (buf + len - 1 > outbuf); (args.string)++) {
00105       if (strchr(args.allowed, *(args.string)))
00106          *outbuf++ = *(args.string);
00107    }
00108    *outbuf = '\0';
00109 
00110    return 0;
00111 }

static int function_eval ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 515 of file func_strings.c.

References ast_log(), ast_strlen_zero(), LOG_WARNING, and pbx_substitute_variables_helper().

00517 {
00518    memset(buf, 0, len);
00519 
00520    if (ast_strlen_zero(data)) {
00521       ast_log(LOG_WARNING, "EVAL requires an argument: EVAL(<string>)\n");
00522       return -1;
00523    }
00524 
00525    pbx_substitute_variables_helper(chan, data, buf, len - 1);
00526 
00527    return 0;
00528 }

static int function_fieldqty ( struct ast_channel chan,
char *  cmd,
char *  parse,
char *  buf,
size_t  len 
) [static]

Definition at line 48 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, AST_STANDARD_APP_ARGS, pbx_retrieve_variable(), and strsep().

00050 {
00051    char *varsubst, varval[8192] = "", *varval2 = varval;
00052    int fieldcount = 0;
00053    AST_DECLARE_APP_ARGS(args,
00054               AST_APP_ARG(varname);
00055               AST_APP_ARG(delim);
00056       );
00057 
00058    AST_STANDARD_APP_ARGS(args, parse);
00059    if (args.delim) {
00060       pbx_retrieve_variable(chan, args.varname, &varval, buf, len, NULL);
00061       if (args.delim[0] == '\\') {
00062          if (args.delim[1] == 'n')
00063             ast_copy_string(args.delim, "\n", 2);
00064          else if (args.delim[1] == 't')
00065             ast_copy_string(args.delim, "\t", 2);
00066          else if (args.delim[1])
00067             ast_copy_string(args.delim, &args.delim[1], 2);
00068          else
00069             ast_copy_string(args.delim, "-", 2);
00070       }
00071       while (strsep(&varval, args.delim))
00072          fieldcount++;
00073    } else {
00074       fieldcount = 1;
00075    }
00076    snprintf(buf, len, "%d", fieldcount);
00077 
00078    return 0;
00079 }

static int function_tolower ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 593 of file func_strings.c.

00594 {
00595    int i = 0;
00596 
00597    while (data[i]) {
00598       if (data[i] & 0x80) {
00599          unsigned char c = data[i];
00600          if (c >= 192 && c <= 223) {
00601             c += 32;
00602             data[i] = (char) c;
00603          }
00604       } else {
00605          data[i] = tolower(data[i]);
00606       }
00607       i++;
00608    }
00609    ast_copy_string(buf, data, len);
00610    return 0;
00611 }

static int function_toupper ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 622 of file func_strings.c.

00623 {
00624    int i = 0;
00625    while (data[i]) {
00626       if (data[i] & 0x80) {
00627          unsigned char c = data[i];
00628          if (c >= 224) {
00629             c -= 32;
00630             data[i] = (char)c;
00631          }
00632       } else {
00633          data[i] = toupper(data[i]);
00634       }
00635       i++;
00636    }
00637    ast_copy_string(buf, data, len);
00638    return 0;
00639 }

static int keypadhash ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 546 of file func_strings.c.

00547 {
00548    char *bufptr, *dataptr;
00549 
00550    for (bufptr = buf, dataptr = data; bufptr < buf + len - 1; dataptr++) {
00551       if (*dataptr == '1') {
00552          *bufptr++ = '1';
00553       } else if (strchr("AaBbCc2", *dataptr)) {
00554          *bufptr++ = '2';
00555       } else if (strchr("DdEeFf3", *dataptr)) {
00556          *bufptr++ = '3';
00557       } else if (strchr("GgHhIi4", *dataptr)) {
00558          *bufptr++ = '4';
00559       } else if (strchr("JjKkLl5", *dataptr)) {
00560          *bufptr++ = '5';
00561       } else if (strchr("MmNnOo6", *dataptr)) {
00562          *bufptr++ = '6';
00563       } else if (strchr("PpQqRrSs7", *dataptr)) {
00564          *bufptr++ = '7';
00565       } else if (strchr("TtUuVv8", *dataptr)) {
00566          *bufptr++ = '8';
00567       } else if (strchr("WwXxYyZz9", *dataptr)) {
00568          *bufptr++ = '9';
00569       } else if (*dataptr == '*') {
00570          *bufptr++ = '*';
00571       } else if (*dataptr == '#') {
00572          *bufptr++ = '#';
00573       } else if (*dataptr == '0') {
00574          *bufptr++ = '0';
00575       } else if (*dataptr == '\0') {
00576          *bufptr++ = '\0';
00577          break;
00578       }
00579    }
00580    buf[len - 1] = '\0';
00581 
00582    return 0;
00583 }

static int len ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 407 of file func_strings.c.

00409 {
00410    int length = 0;
00411 
00412    if (data)
00413       length = strlen(data);
00414 
00415    snprintf(buf, len, "%d", length);
00416 
00417    return 0;
00418 }

static int load_module ( void   )  [static]

Definition at line 672 of file func_strings.c.

References array_function, ast_custom_function_register(), eval_function, fieldqty_function, filter_function, keypadhash_function, len_function, quote_function, regex_function, sprintf_function, strftime_function, strptime_function, tolower_function, and toupper_function.

static int quote ( struct ast_channel chan,
char *  cmd,
char *  data,
char *  buf,
size_t  len 
) [static]

Definition at line 377 of file func_strings.c.

Referenced by ast_app_separate_args(), and make_email_file().

00378 {
00379    char *bufptr = buf, *dataptr = data;
00380    *bufptr++ = '"';
00381    for (; bufptr < buf + len - 1; dataptr++) {
00382       if (*dataptr == '\\') {
00383          *bufptr++ = '\\';
00384          *bufptr++ = '\\';
00385       } else if (*dataptr == '"') {
00386          *bufptr++ = '\\';
00387          *bufptr++ = '"';
00388       } else if (*dataptr == '\0') {
00389          break;
00390       } else {
00391          *bufptr++ = *dataptr;
00392       }
00393    }
00394    *bufptr++ = '"';
00395    *bufptr = '\0';
00396    return 0;
00397 }

static int regex ( struct ast_channel chan,
char *  cmd,
char *  parse,
char *  buf,
size_t  len 
) [static]

Definition at line 120 of file func_strings.c.

References AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_log(), AST_NONSTANDARD_APP_ARGS, LOG_DEBUG, LOG_ERROR, LOG_WARNING, and option_debug.

00122 {
00123    AST_DECLARE_APP_ARGS(args,
00124               AST_APP_ARG(null);
00125               AST_APP_ARG(reg);
00126               AST_APP_ARG(str);
00127    );
00128    int errcode;
00129    regex_t regexbuf;
00130 
00131    buf[0] = '\0';
00132 
00133    AST_NONSTANDARD_APP_ARGS(args, parse, '"');
00134 
00135    if (args.argc != 3) {
00136       ast_log(LOG_ERROR, "Unexpected arguments: should have been in the form '\"<regex>\" <string>'\n");
00137       return -1;
00138    }
00139    if ((*args.str == ' ') || (*args.str == '\t'))
00140       args.str++;
00141 
00142    if (option_debug)
00143       ast_log(LOG_DEBUG, "FUNCTION REGEX (%s)(%s)\n", args.reg, args.str);
00144 
00145    if ((errcode = regcomp(&regexbuf, args.reg, REG_EXTENDED | REG_NOSUB))) {
00146       regerror(errcode, &regexbuf, buf, len);
00147       ast_log(LOG_WARNING, "Malformed input %s(%s): %s\n", cmd, parse, buf);
00148       return -1;
00149    }
00150    
00151    strcpy(buf, regexec(&regexbuf, args.str, 0, NULL, 0) ? "0" : "1");
00152 
00153    regfree(&regexbuf);
00154 
00155    return 0;
00156 }

static int unload_module ( void   )  [static]

Definition at line 651 of file func_strings.c.

References array_function, ast_custom_function_unregister(), eval_function, fieldqty_function, filter_function, keypadhash_function, len_function, quote_function, regex_function, sprintf_function, strftime_function, strptime_function, tolower_function, and toupper_function.


Variable Documentation

struct ast_custom_function array_function [static]

Definition at line 220 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function eval_function [static]

Definition at line 530 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function fieldqty_function [static]

Definition at line 81 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function filter_function [static]

Definition at line 113 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function keypadhash_function [static]

Definition at line 585 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function len_function [static]

Definition at line 420 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function quote_function [static]

Definition at line 399 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function regex_function [static]

Definition at line 158 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function sprintf_function [static]

Definition at line 366 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function strftime_function [static]

Definition at line 456 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function strptime_function [static]

Definition at line 500 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function tolower_function [static]

Definition at line 613 of file func_strings.c.

Referenced by load_module(), and unload_module().

struct ast_custom_function toupper_function [static]

Definition at line 642 of file func_strings.c.

Referenced by load_module(), and unload_module().


Generated on Fri Aug 24 02:25:41 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1