MLT  7.28.0
Functions
mlt_tokeniser.c File Reference

string tokeniser More...

#include <stdlib.h>
#include <string.h>
#include "mlt_tokeniser.h"

Functions

static int mlt_tokeniser_append (mlt_tokeniser tokeniser, char *token)
 Append a string to the tokeniser. More...
 
static void mlt_tokeniser_clear (mlt_tokeniser tokeniser)
 Clear the tokeniser. More...
 
void mlt_tokeniser_close (mlt_tokeniser tokeniser)
 Close the tokeniser. More...
 
int mlt_tokeniser_count (mlt_tokeniser tokeniser)
 Get the number of tokens. More...
 
char * mlt_tokeniser_get_input (mlt_tokeniser tokeniser)
 Get the original input. More...
 
char * mlt_tokeniser_get_string (mlt_tokeniser tokeniser, int index)
 Get a token as a string. More...
 
mlt_tokeniser mlt_tokeniser_init ()
 Initialise a tokeniser. More...
 
int mlt_tokeniser_parse_new (mlt_tokeniser tokeniser, char *string, const char *delimiter)
 Parse a string by splitting on the delimiter provided. More...
 

Detailed Description

string tokeniser

See also
mlt_tokeniser_s

Copyright (C) 2002-2014 Meltytech, LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Function Documentation

◆ mlt_tokeniser_append()

static int mlt_tokeniser_append ( mlt_tokeniser  tokeniser,
char *  token 
)
static

Append a string to the tokeniser.

◆ mlt_tokeniser_clear()

static void mlt_tokeniser_clear ( mlt_tokeniser  tokeniser)
static

Clear the tokeniser.

◆ mlt_tokeniser_close()

void mlt_tokeniser_close ( mlt_tokeniser  tokeniser)

Close the tokeniser.

◆ mlt_tokeniser_count()

int mlt_tokeniser_count ( mlt_tokeniser  tokeniser)

Get the number of tokens.

◆ mlt_tokeniser_get_input()

char* mlt_tokeniser_get_input ( mlt_tokeniser  tokeniser)

Get the original input.

◆ mlt_tokeniser_get_string()

char* mlt_tokeniser_get_string ( mlt_tokeniser  tokeniser,
int  index 
)

Get a token as a string.

◆ mlt_tokeniser_init()

mlt_tokeniser mlt_tokeniser_init ( )

Initialise a tokeniser.

◆ mlt_tokeniser_parse_new()

int mlt_tokeniser_parse_new ( mlt_tokeniser  tokeniser,
char *  string,
const char *  delimiter 
)

Parse a string by splitting on the delimiter provided.