#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <limits.h>
#include "tcrip.h"
Go to the source code of this file.
Defines | |
#define | hex(x) (((x)<0x3a)? ((x)-'0'): (((x)<0x60)? ((x)-0x37): ((x)-0x57))) |
Copyright (C) 2003 Michael Ahlberg, Måns Rullgård. | |
#define | bsub(c, e) case c: *d = e; s++; break |
#define | ext(n) |
Functions | |
static const char * | escape (char *d, const char *s) |
char * | tcstrexp (const char *s, const char *sd, const char *ed, char fs, char *(*lookup)(char *, void *), void *ld, int flags) |
Something evil that tcregsub needs. | |
int | tcstresc (char *dst, const char *src) |
Definition in file tcstring.c.
|
Referenced by escape(). |
|
Value: do { \ int o = p - expo; \ expo = realloc(expo, l += n); \ p = expo + o; \ } while(0) Referenced by tcstrexp(). |
|
Copyright (C) 2003 Michael Ahlberg, Måns Rullgård. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Definition at line 65 of file tcstring.c. Referenced by escape(). |
|
Definition at line 68 of file tcstring.c. Referenced by tcstresc(), and tcstrexp(). |
|
Definition at line 378 of file tcstring.c. References escape(). |
|
Something evil that tcregsub needs. Don't ask me. Definition at line 125 of file tcstring.c. References escape(), ext, tcregsub(), tcstrexp(), TCSTREXP_ESCAPE, TCSTREXP_FREE, and TCSTREXP_KEEPUNDEF. Referenced by tcregsub(), and tcstrexp(). |