pcre_stringpiece_unittest.cc File Reference

#include <stdio.h>
#include <map>
#include <algorithm>
#include "pcrecpp.h"
#include "pcre_stringpiece.h"

Go to the source code of this file.

Defines

#define CHECK(condition)
#define CMP_Y(op, x, y)
#define CMP_N(op, x, y)

Functions

static void CheckSTLComparator ()
static void CheckComparisonOperators ()
int main (int argc, char **argv)


Define Documentation

#define CHECK ( condition   ) 

Value:

do {                           \
  if (!(condition)) {                                   \
    fprintf(stderr, "%s:%d: Check failed: %s\n",        \
            __FILE__, __LINE__, #condition);            \
    exit(1);                                            \
  }                                                     \
} while (0)

Definition at line 19 of file pcre_stringpiece_unittest.cc.

#define CMP_N ( op,
x,
y   ) 

Value:

CHECK(!(StringPiece((x)) op StringPiece((y))));               \
  CHECK(!(StringPiece((x)).compare(StringPiece((y))) op 0))

Referenced by CheckComparisonOperators().

#define CMP_Y ( op,
x,
y   ) 

Value:

CHECK( (StringPiece((x)) op StringPiece((y))));               \
  CHECK( (StringPiece((x)).compare(StringPiece((y))) op 0))

Referenced by CheckComparisonOperators().


Function Documentation

static void CheckComparisonOperators (  )  [static]

Definition at line 74 of file pcre_stringpiece_unittest.cc.

References CMP_N, and CMP_Y.

Referenced by main().

static void CheckSTLComparator (  )  [static]

Definition at line 31 of file pcre_stringpiece_unittest.cc.

References CHECK, p1(), p2(), p3(), s1, and s2.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 145 of file pcre_stringpiece_unittest.cc.

References CheckComparisonOperators(), and CheckSTLComparator().


Generated on Tue Jul 5 15:57:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1