#include <Utilities.hpp>
Static Public Member Functions | |
static int | strCaselessCompare (const char *opt1, const char *opt2) |
static int | memicmp (const void *opt1, const void *opt2, size_t len) |
static void | strupper (char *str) |
static void | strlower (char *str) |
static const char * | strnchr (const char *, size_t n, char ch) |
static const char * | locateCharacter (const char *s, const char *set, size_t l) |
static int | vsnprintf (char *buffer, size_t count, const char *format, va_list args) |
static int | snprintf (char *buffer, size_t count, const char *format,...) |
static wholenumber_t | currentThreadId () |
static void | traceConcurrency (bool) |
static bool | traceConcurrency () |
static void | traceParsing (bool) |
static bool | traceParsing () |
static void | SetConcurrencyInfosCollector (ConcurrencyInfosCollector) |
static void | GetConcurrencyInfos (struct ConcurrencyInfos &concurrencyInfos) |
Definition at line 75 of file Utilities.hpp.
|
static |
Definition at line 124 of file unix/SysUtilities.cpp.
Referenced by GetConcurrencyInfos(), and APIServer::processMessages().
|
static |
Definition at line 61 of file Utilities.cpp.
References concurrencyCollector, and ConcurrencyInfos::lock.
Referenced by RexxSource::addClause(), dumpClauseImpl(), dumpTokensImpl(), SysMutex::release(), SysMutex::request(), SysMutex::requestImmediate(), RexxActivity::traceOutput(), and SysSemaphore::wait().
|
static |
Definition at line 72 of file Utilities.cpp.
Referenced by RexxSource::initBuffered().
|
static |
Portable implementation of a caseless memory compare.
opt1 | First memory location to compare. |
opt2 | Second memory location. |
len | Length to compare. |
Definition at line 127 of file Utilities.cpp.
Referenced by StreamToken::equals().
|
static |
Definition at line 55 of file Utilities.cpp.
References concurrencyCollector.
Referenced by ConcurrencyInfosCollectorInitializer::ConcurrencyInfosCollectorInitializer().
|
static |
Encapsulation of snprintf Unix implementation. The goal is to have the same behavior on all platforms.
buffer | Buffer receiving the formated output. |
size | Size of buffer. |
format | Format string. |
... | Optional arguments |
Encapsulation of snprintf Windows implementation. The goal is to have the same behavior on all platforms.
buffer | Buffer receiving the formated output. |
size | Size of buffer. |
format | Format string. |
... | Optional arguments |
Definition at line 113 of file unix/SysUtilities.cpp.
References vsnprintf().
Referenced by RexxToken::codeText(), RexxToken::keywordText(), nameCollision(), and RexxActivity::traceOutput().
|
static |
Portable implementation of an ascii-z caseless string compare.
opt1 | First string argument |
opt2 | Second string argument. |
Definition at line 102 of file Utilities.cpp.
Referenced by RexxObject::defMethod(), RexxSource::initFile(), NameTable::inTable(), LocalQueueManager::isSessionQueue(), MacroTable::locate(), QueueTable::locate(), RegistrationData::matches(), StreamInfo::openStd(), MacroTable::remove(), QueueTable::remove(), RexxObject::setMethod(), RexxString::strCaselessCompare(), systemCommandHandler(), traceConcurrency(), traceParsing(), and LocalQueueManager::validateQueueName().
|
static |
Portable implementation of an ascii-z string to uppercase (in place).
str | String argument |
Definition at line 171 of file Utilities.cpp.
Referenced by SysFileSystem::primitiveSearchName().
|
static |
Bounded strchr() function.
data | The data pointer. |
n | The maximum length to scan. |
ch | The character of interest. |
Definition at line 192 of file Utilities.cpp.
Referenced by RoutineClass::restore().
|
static |
Portable implementation of an ascii-z string to uppercase (in place).
str | String argument |
Definition at line 152 of file Utilities.cpp.
Referenced by hasNoBufferOption(), and LocalRegistrationManager::resolveCallback().
|
static |
Definition at line 139 of file unix/SysUtilities.cpp.
References strCaselessCompare(), and TRACE_CONCURRENCY.
Referenced by RexxSource::addClause(), dumpClauseImpl(), dumpTokensImpl(), APIServer::processMessages(), SysMutex::release(), SysMutex::request(), SysMutex::requestImmediate(), RexxActivity::traceOutput(), and SysSemaphore::wait().
|
static |
Definition at line 133 of file unix/SysUtilities.cpp.
References TRACE_CONCURRENCY.
|
static |
Definition at line 171 of file unix/SysUtilities.cpp.
References strCaselessCompare(), and TRACE_PARSING.
Referenced by RexxSource::addClause(), dumpClauseImpl(), and dumpTokensImpl().
|
static |
Definition at line 165 of file unix/SysUtilities.cpp.
References TRACE_PARSING.
|
static |
Encapsulation of vsnprintf Unix implementation. The goal is to have the same behavior on all platforms.
buffer | Buffer receiving the formated output. |
size | Size of buffer. |
format | Format string. |
args | Pointer to optional arguments |
Encapsulation of _vsnprintf Windows implementation. The goal is to have the same behavior on all platforms.
buffer | Buffer receiving the formated output. |
size | Size of buffer. |
format | Format string. |
args | Pointer to optional arguments |
Definition at line 60 of file unix/SysUtilities.cpp.
Referenced by rsnprintf(), and snprintf().