Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

scans_text.c File Reference

Implements scans for ASCII, Unicode and other text encodings. More...

#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "fret.h"
#include "scans_text.h"
#include "common.h"

Include dependency graph for scans_text.c:


Data Structures

struct  State
 Describes the internal state of a Scan. More...

Functions

bool scanAscii (const unsigned char *const pBuffer, const size_t length, void *const pState, Gram *pGram)
void * newStateAscii (void)

Detailed Description

Implements scans for ASCII, Unicode and other text encodings.

Currently implements one Scan for a string of 1-byte ASCII characters.


Function Documentation

void* newStateAscii void   ) 
 

Creates a variable that holds the state of the Scan between calls.

bool scanAscii const unsigned char *const   pBuffer,
const size_t  length,
void *const   pState,
Gram pGram
 

Function scans a buffer for a series of uninterrupted printable ASCII characters.


Generated on Thu Jan 19 18:59:27 2006 for FRET by  doxygen 1.4.4