Shared code. More...
Go to the source code of this file.
Functions | |
const char * | skip_classic_expando (const char *str, const struct ExpandoDefinition *defs) |
Skip over the text of an Expando. | |
const char * | skip_until_ch (const char *start, char terminator) |
Search a string for a terminator character. | |
const char * | skip_until_classic_expando (const char *start) |
Search through string until we reach an Expando character. | |
const struct ExpandoRenderData * | find_get_number (const struct ExpandoRenderData *rdata, int did, int uid) |
Find a get_number() callback function. | |
const struct ExpandoRenderData * | find_get_string (const struct ExpandoRenderData *rdata, int did, int uid) |
Find a get_string() callback function. | |
void | buf_lower_special (struct Buffer *buf) |
Convert to lowercase, excluding special characters. | |
Shared code.
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/.
Definition in file helpers.h.
const char * skip_classic_expando | ( | const char * | str, |
const struct ExpandoDefinition * | defs | ||
) |
Skip over the text of an Expando.
str | Starting place |
defs | Expando definitions |
ptr | Character after Expando, or end-of-string |
Definition at line 144 of file helpers.c.
const char * skip_until_ch | ( | const char * | start, |
char | terminator | ||
) |
Search a string for a terminator character.
start | Start of string |
terminator | Character to find |
ptr | Position of terminator character, or end-of-string |
Definition at line 94 of file helpers.c.
const char * skip_until_classic_expando | ( | const char * | start | ) |
Search through string until we reach an Expando character.
start | Where to start looking |
ptr | Match, or end-of-string |
Definition at line 128 of file helpers.c.
const struct ExpandoRenderData * find_get_number | ( | const struct ExpandoRenderData * | rdata, |
int | did, | ||
int | uid | ||
) |
Find a get_number() callback function.
rdata | Render data to search |
did | Domain ID to match |
uid | Unique ID to match |
ptr | Matching Render data |
Definition at line 47 of file helpers.c.
const struct ExpandoRenderData * find_get_string | ( | const struct ExpandoRenderData * | rdata, |
int | did, | ||
int | uid | ||
) |
Find a get_string() callback function.
rdata | Render data to search |
did | Domain ID to match |
uid | Unique ID to match |
ptr | Matching Render data |
Definition at line 71 of file helpers.c.
void buf_lower_special | ( | struct Buffer * | buf | ) |
Convert to lowercase, excluding special characters.
buf | String to lowercase |
The string is transformed in place.
Definition at line 176 of file helpers.c.