ooRexx  4.2.0-source
About: ooRexx (Open Object Rexx) is a free implementation of Object Rexx. Object Rexx is an enhancement of the classic Rexx interpreter; a full-featured programming language with a human-oriented syntax.
  Fossies Dox: ooRexx-4.2.0-source.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

Utilities Class Reference

#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)
 

Detailed Description

Definition at line 45 of file Utilities.hpp.

Member Function Documentation

◆ locateCharacter()

const char * Utilities::locateCharacter ( const char *  s,
const char *  set,
size_t  l 
)
static

Definition at line 52 of file Utilities.cpp.

Referenced by RexxSource::initBuffered().

◆ memicmp()

int Utilities::memicmp ( const void *  mem1,
const void *  mem2,
size_t  len 
)
static

Portable implementation of a caseless memory compare.

Parameters
opt1First memory location to compare.
opt2Second memory location.
lenLength to compare.
Returns
The compare result. Returns 0, negative, or positive depending one the ordering compare result.

Definition at line 107 of file Utilities.cpp.

Referenced by StreamToken::equals().

◆ strCaselessCompare()

int Utilities::strCaselessCompare ( const char *  op1,
const char *  op2 
)
static

Portable implementation of an ascii-z caseless string compare.

Parameters
opt1First string argument
opt2Second string argument.
Returns
The compare result. Returns 0, negative, or positive depending one the ordering compare result.

Definition at line 82 of file Utilities.cpp.

Referenced by RexxObject::defMethod(), RexxSource::initFile(), SysInterpreterInstance::initialize(), NameTable::inTable(), LocalQueueManager::isSessionQueue(), MacroTable::locate(), QueueTable::locate(), RegistrationData::matches(), StreamInfo::openStd(), MacroTable::remove(), QueueTable::remove(), RexxObject::setMethod(), RexxString::strCaselessCompare(), systemCommandHandler(), and LocalQueueManager::validateQueueName().

◆ strlower()

void Utilities::strlower ( char *  str)
static

Portable implementation of an ascii-z string to uppercase (in place).

Parameters
strString argument
Returns
The address of the str unput argument.

Definition at line 151 of file Utilities.cpp.

Referenced by SysFileSystem::primitiveSearchName().

◆ strnchr()

const char * Utilities::strnchr ( const char *  data,
size_t  n,
char  ch 
)
static

Bounded strchr() function.

Parameters
dataThe data pointer.
nThe maximum length to scan.
chThe character of interest.
Returns
The pointer to the located character, or NULL if it isn't found.

Definition at line 172 of file Utilities.cpp.

Referenced by RoutineClass::restore().

◆ strupper()

void Utilities::strupper ( char *  str)
static

Portable implementation of an ascii-z string to uppercase (in place).

Parameters
strString argument
Returns
The address of the str unput argument.

Definition at line 132 of file Utilities.cpp.

Referenced by hasNoBufferOption(), and LocalRegistrationManager::resolveCallback().


The documentation for this class was generated from the following files: