nyctergatis.com

Contact

Projects
Sysquake Remote Live
NME
PDF
Hike
Sudoku
GifBuilder
jpeglib for Palm OS
MySQL Client
Cross-GCC for Mac OS
NMETest.c File Reference

Test style to check the correct nesting of NME style strings. More...

#include "NMETest.h"

Go to the source code of this file.

Defines

#define kMaxDepth   32

Functions

static NMEErr encodeURLFunNull (NMEConstText link, NMEInt linkLen, NMEContext *context, void *data)
 NMEEncodeURLFun function which encodes link to a URL for null output, producing no output.
static NMEErr encodeCharFunNull (NMEConstText src, NMEInt srcLen, NMEInt *srcIx, NMEContext *context, void *data)
 NMEEncodeCharFun function which encodes characters for null output, producing no output; the encodeCharData field is ignored (can be set to NULL).
NMEErr NMETest (NMEConstText output, NMEInt outputLength, NMEInt *lineNumber)
 Test the output generated with NMEOutputFormatTest.

Variables

NMEOutputFormat const NMEOutputFormatTest
 Test format to check the correct nesting of style strings.

Detailed Description

Test style to check the correct nesting of NME style strings.

Author:
Yves Piguet.

Definition in file NMETest.c.


Function Documentation

static NMEErr encodeCharFunNull ( NMEConstText  src,
NMEInt  srcLen,
NMEInt srcIx,
NMEContext context,
void *  data 
) [static]

NMEEncodeCharFun function which encodes characters for null output, producing no output; the encodeCharData field is ignored (can be set to NULL).

Parameters:
[in]srcinput characters
[in]srcLensize of src in bytes
[in,out]srcIxindex in src (should be updated by one character)
[in,out]contextcurrent context
[in,out]dataignored
Returns:
error code (kNMEErrOk for success)
See also:
NMEOutputFormat

Definition at line 36 of file NMETest.c.

static NMEErr encodeURLFunNull ( NMEConstText  link,
NMEInt  linkLen,
NMEContext context,
void *  data 
) [static]

NMEEncodeURLFun function which encodes link to a URL for null output, producing no output.

Parameters:
[in]linkinput characters (ignored)
[in]linkLenlength of link (ignored)
[in,out]contextcurrent context (ignored)
[in,out]datavalue specific to the callback (ignored)
Returns:
error code (always kNMEErrOk)

Definition at line 20 of file NMETest.c.

NMEErr NMETest ( NMEConstText  output,
NMEInt  outputLength,
NMEInt lineNumber 
)

Test the output generated with NMEOutputFormatTest.

Parameters:
[in]outputoutput generated with NMEOutputFormatTest
[in]outputLengthlength of output in bytes
[out]lineNumberlast line processed
Returns:
kNMEErrOk for success, else error code

Definition at line 93 of file NMETest.c.


Variable Documentation

Test format to check the correct nesting of style strings.

Each start or end of construct results in a separate line, starting with a + for start or a - for end. Corresponding lines should match and nest correctly.

Definition at line 44 of file NMETest.c.

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