nyctergatis.com

Contact

Projects
Sysquake Remote Live
NME
PDF
Hike
Sudoku
GifBuilder
jpeglib for Palm OS
MySQL Client
Cross-GCC for Mac OS

NMEAutolink.c File Reference


Detailed Description

NME optional automatic link recognition (CamelCase and URL).

Author:
Yves Piguet. Copyright 2007-2008, Yves Piguet.

Definition in file NMEAutolink.c.

#include "NMEAutolink.h"

Go to the source code of this file.


Defines

#define isBlank(c)   ((c) == ' ' || (c) == '\t' || (c) == '\r' || (c) == '\n')
 Test whether character is a space/tab/cr/lf.
#define isAlpha(c)   ((c) >= 'a' && (c) <= 'z' || (c) >= 'A' && (c) <= 'Z')
 Test whether character is alphabetic.

Functions

NMEBoolean NMEAutoconvertCamelCase (NMEConstText src, NMEInt srcLen, NMEInt *i, NMEContext *context, void *userData)
 Autoconvert implementation for camelCase words.
NMEBoolean NMEAutoconvertURL (NMEConstText src, NMEInt srcLen, NMEInt *i, NMEContext *context, void *userData)
 Autoconvert implementation for URLs.

Function Documentation

NMEBoolean NMEAutoconvertCamelCase ( NMEConstText  src,
NMEInt  srcLen,
NMEInt i,
NMEContext context,
void *  userData 
)

Autoconvert implementation for camelCase words.

Parameters:
[in] src source text with markup
[in] srcLen source text length
[in,out] i index in src (token to parse on input, next token on output)
[in,out] context current context
[in] userData pointer passed from the parser, as specified in NMEAutoconvert
Returns:
TRUE for conversion, else FALSE

Definition at line 17 of file NMEAutolink.c.

NMEBoolean NMEAutoconvertURL ( NMEConstText  src,
NMEInt  srcLen,
NMEInt i,
NMEContext context,
void *  userData 
)

Autoconvert implementation for URLs.

Parameters:
[in] src source text with markup
[in] srcLen source text length
[in,out] i index in src (token to parse on input, next token on output)
[in,out] context current context
[in] userData pointer passed from the parser, as specified in NMEAutoconvert
Returns:
TRUE for conversion, else FALSE

Definition at line 52 of file NMEAutolink.c.

Generated by Doxygen.
Copyright 2007-2008, Yves Piguet.
All rights reserved.