NCBI C++ ToolKit
Macros
regexp_template_tester.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbifile.hpp>
#include <corelib/tempstr.hpp>
#include <util/xregexp/regexp.hpp>
#include <util/xregexp/regexp_template_tester.hpp>
+ Include dependency graph for regexp_template_tester.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define FILE_NAME(name)    (name.empty() ? string("(stream)") : name)
 
#define ERROR_FILE(errcode, message, file)
 
#define ERROR_TEMPLATE(errcode, message)
 
#define SKIP_SPACES    while (i < len && isspace((unsigned char)str[i])) ++i
 

Macro Definition Documentation

◆ ERROR_FILE

#define ERROR_FILE (   errcode,
  message,
  file 
)
Value:
FILE_NAME(file) + " -- " + message)
CRegexpTemplateTesterException –.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
Definition: ncbiexpt.hpp:704
FILE * file
#define FILE_NAME(name)

Definition at line 54 of file regexp_template_tester.cpp.

◆ ERROR_TEMPLATE

#define ERROR_TEMPLATE (   errcode,
  message 
)
Value:
FILE_NAME(m_FileName) + "(" + \
NStr::NumericToString(m_FileLineNum) + ")\n" + \
FILE_NAME(m_TemplateName) + "(" + \
NStr::NumericToString(m_TemplateLineNum) + ")\n-- " + \
message)
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
Definition: ncbistr.hpp:673

Definition at line 58 of file regexp_template_tester.cpp.

◆ FILE_NAME

#define FILE_NAME (   name)     (name.empty() ? string("(stream)") : name)

Definition at line 51 of file regexp_template_tester.cpp.

◆ SKIP_SPACES

#define SKIP_SPACES    while (i < len && isspace((unsigned char)str[i])) ++i

Definition at line 439 of file regexp_template_tester.cpp.

Modified on Wed Jun 12 11:13:33 2024 by modify_doxy.py rev. 669887