![]()  | 
  
    libgpac
    
   Documentation of the core library of GPAC 
   | 
  
String Tokenizer. More...
 Collaboration diagram for Tokenizer:Functions | |
| s32 | gf_token_get (const char *Buffer, s32 Start, const char *Separator, char *Container, s32 ContainerSize) | 
| get string component   | |
| s32 | gf_token_get_strip (const char *Buffer, s32 Start, const char *Separator, const char *strip_set, char *Container, s32 ContainerSize) | 
| get string component without delimitting characters   | |
| s32 | gf_token_get_line (const char *buffer, u32 start, u32 size, char *line_buffer, u32 line_buffer_size) | 
| line removal   | |
| s32 | gf_token_find (const char *Buffer, u32 Start, u32 Size, const char *Pattern) | 
| pattern location   | |
| const char * | gf_token_find_word (const char *in_str, const char *word, char *charsep) | 
| word location   | |
String Tokenizer.
This section documents the basic string tokenizer of the GPAC framework.
| s32 gf_token_get | ( | const char * | Buffer, | 
| s32 | Start, | ||
| const char * | Separator, | ||
| char * | Container, | ||
| s32 | ContainerSize | ||
| ) | 
get string component
Gets the next string component comprised in a given set of characters
| Buffer | source string to scan | 
| Start | char offset from beginning of buffer where tokenization shall start | 
| Separator | separator characters to use | 
| Container | output buffer location | 
| ContainerSize | output buffer allocated size | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| s32 gf_token_get_strip | ( | const char * | Buffer, | 
| s32 | Start, | ||
| const char * | Separator, | ||
| const char * | strip_set, | ||
| char * | Container, | ||
| s32 | ContainerSize | ||
| ) | 
get string component without delimitting characters
Gets the next string component comprised in a given set of characters, removing surrounding characters
| Buffer | source string to scan | 
| Start | char offset from beginning of buffer where tokenization shall start | 
| Separator | separator characters to use | 
| strip_set | surrounding characters to remove | 
| Container | output buffer location | 
| ContainerSize | output buffer allocated size | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| s32 gf_token_get_line | ( | const char * | buffer, | 
| u32 | start, | ||
| u32 | size, | ||
| char * | line_buffer, | ||
| u32 | line_buffer_size | ||
| ) | 
line removal
Gets one line from buffer and remove delimiters CR, LF and CRLF
| buffer | source string to scan | 
| start | char offset from beginning of buffer where tokenization shall start | 
| size | size of the input buffer to analyze | 
| line_buffer | output buffer location | 
| line_buffer_size | output buffer allocated size | 
 Here is the call graph for this function:
 Here is the caller graph for this function:pattern location
Locates a pattern in the buffer
| Buffer | source string to scan | 
| Start | char offset from beginning of buffer where tokenization shall start | 
| Size | size of the input buffer to analyze | 
| Pattern | pattern to locate | 
 Here is the caller graph for this function:| const char * gf_token_find_word | ( | const char * | in_str, | 
| const char * | word, | ||
| char * | charsep | ||
| ) | 
word location
Locates a word in a string
| in_str | source string to scan | 
| word | word to locate | 
| charsep | set of separators to use. If NULL, function acts as strstr | 
 Here is the caller graph for this function: