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

NME optional automatic link recognition (CamelCase and URL) More...

#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.

Detailed Description

NME optional automatic link recognition (CamelCase and URL)

Author:
Yves Piguet.

Definition in file NMEAutolink.c.


Function Documentation

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

Autoconvert implementation for camelCase words.

Parameters:
[in]srcsource text with markup
[in]srcLensource text length
[in,out]iindex in src (token to parse on input, next token on output)
[in,out]contextcurrent context
[in]userDatapointer passed from the parser, as specified in NMEAutoconvert
Returns:
TRUE for conversion, else FALSE

Definition at line 18 of file NMEAutolink.c.

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

Autoconvert implementation for URLs.

Parameters:
[in]srcsource text with markup
[in]srcLensource text length
[in,out]iindex in src (token to parse on input, next token on output)
[in,out]contextcurrent context
[in]userDatapointer passed from the parser, as specified in NMEAutoconvert
Returns:
TRUE for conversion, else FALSE

Definition at line 53 of file NMEAutolink.c.

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