Definition in file utils.cpp.
#include <ctype.h>
#include "xercesc/sax2/XMLReaderFactory.hpp"
#include "xercesc/sax2/SAX2XMLReader.hpp"
#include "utils.hpp"
#include <time.h>
Include dependency graph for utils.cpp:
Go to the source code of this file.
Functions | |
BEGIN_XDFLENGINE_NS char * | XSTR (const XMLCh *totrans, char *p_pszBuffer) |
XMLCh to char* converter. //. | |
char * | XSTR (XMLTranscoder *fXCoder, const XMLCh *const toFormat, const unsigned int count, char *p_pszBuffer) |
char * | XSTR (XMLTranscoder *fXCoder, const XMLCh *const toFormat, char *p_pszBuffer) |
XMLCh * | STRX (const char *totrans) |
char* to XMLCh converter. // | |
char * | correctAttrValue (const char *src) |
void | SAX_parseXML (InputSource *p_pXMLDOM_inputSrc,ContentHandler *p_pXMLSAX_handlers, ErrorHandler *p_pErrHandler) |
Launches the parsing of given source with given content & error handler. | |
char * | SAX_getAttrValue (const Attributes &p_attrs, const char *p_pzName, const char *p_pszDefValue, char *p_pzBuffer) |
Extracts a named attribute from the collection given by parser. | |
void | upperize (char *cTxt) |
Makes given string upper case. | |
void | lowerize (char *cTxt) |
Makes given string lower case. | |
char * | getTimeString (const char *p_cExpression) |
Returns the date formatted as requested in the argument. if DATEFORMAT_USER : jj/mm/aaaa hh:mm:ss if DATEFORMAT_FILE : aaaammjj_hhmmss if DATEFORMAT_SQL : aaaa-mm-ss hh:mm:ss. | |
char * | allocCharBuffer (unsigned int p_uiSize) |
char * | releaseCharBuffer (char *p_pszBuffer) |
char * | copyCharBuffer (const char *p_pszBuffer) |
char * | trimCharBuffer (const char *p_pszToTrim) |
char * | importCharBuffer (char *p_pszOldBuffer, const char *p_pszNewBuffer) |
const char * | exportCharBuffer (char *l_pszBuffer) |
char * | concatCharBuffer (char *p_pszBaseBuffer, const char *p_pszToAdd, unsigned int p_uiGrowSize) |
char * | replaceInCharBuffer (const char *src, const char *srch, const char *rpl) |
|
Definition at line 263 of file utils.cpp. Referenced by SQLDBValuer::calculateExpression(), concatCharBuffer(), copyCharBuffer(), getTimeString(), trimCharBuffer(), LogStreamer::writeData(), and XSTR(). |
|
|
|
Definition at line 114 of file utils.cpp. References releaseCharBuffer(), and replaceInCharBuffer(). Referenced by DBOBJDefinitionNode::getXML(). |
|
|
Returns the date formatted as requested in the argument. if DATEFORMAT_USER : jj/mm/aaaa hh:mm:ss if DATEFORMAT_FILE : aaaammjj_hhmmss if DATEFORMAT_SQL : aaaa-mm-ss hh:mm:ss.
Definition at line 211 of file utils.cpp. References allocCharBuffer(). Referenced by DateValuer::calculateExpression(). |
|
|
Makes given string lower case.
Definition at line 202 of file utils.cpp. Referenced by AutodescStreamer::completeDefinitionNode(). |
|
|
Definition at line 433 of file utils.cpp. References concatCharBuffer(), and copyCharBuffer(). Referenced by correctAttrValue(), DBOBJSetStreamer::getFieldValue(), and OTL_insertInVar(). |
|
Extracts a named attribute from the collection given by parser.
Definition at line 169 of file utils.cpp. References copyCharBuffer(), STRX(), and XSTR(). Referenced by SAXDBOBJDefinitionBuilder::startElement(), DBObjectSAXBuilder::startElement(), and DBOBJGetStatementSAXBuilder::startElement(). |
|
Launches the parsing of given source with given content & error handler.
|
|
char* to XMLCh converter. //
Definition at line 105 of file utils.cpp. Referenced by SAX_getAttrValue(), StreamInputSource::setEncoding(), and XMLFlowContext::XMLFlowContext(). |
|
Definition at line 300 of file utils.cpp. References allocCharBuffer(). Referenced by DBObjectSAXBuilder::characters(), DBOBJGetStatementSAXBuilder::characters(), SAXLangHandler::characters(), SAXSystemHandler::characters(), and SAXValuesHandler::characters(). |
|
Makes given string upper case.
Definition at line 198 of file utils.cpp. Referenced by AutodescStreamer::completeDefinitionNode(), and SAXSQLHandler::SAXSQLHandler(). |
|
|
|
|
XMLCh to char* converter. //.
|