FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEstring.h File Reference

OME string implementation. More...

#include <string>
#include <OMErefCount.h>

Go to the source code of this file.

Classes

class  OMEstringStorage
 Reference-counted storage for OMEstring objects. More...
 
class  OMEstring
 Implements text and binary string storage. More...
 

Macros

#define _OME_STRING_H   "$Id: OMEstring.h 406 2020-07-12 05:07:33Z geoff $"
 

Enumerations

enum  OME_character_set_t {
  OME_CHARSET_UNDEFINED = 0, OME_CHARSET_MASK_CHARSET = 0x1f, OME_CHARSET_STRING_IN_ROM = 0x20, OME_CHARSET_MASK_WIDE_CHARS = 0x10,
  OME_CHARSET_ASCII = 1, OME_CHARSET_EBCDIC = 2, OME_CHARSET_BINARY = 3, OME_CHARSET_UNICODE = (4 | OME_CHARSET_MASK_WIDE_CHARS),
  OME_DEFAULT_CHARSET = OME_CHARSET_ASCII
}
 

Functions

constexpr uint_fast8_t UTF8characterLength (uint_fast8_t firstByte)
 Return the number of bytes needed to represent the UTF character. More...
 
uint_fast8_t UTF8characterLength (const void *charPtr)
 Return the number of bytes needed to represent the UTF character at the indicated address. More...
 
template<typename STREAMTYPE >
STREAMTYPE & operator<< (STREAMTYPE &outputStream, const OMEstring &data)
 Output an OMEstring to an output stream. More...
 
ssize_t findSubstring (const unsigned char *source, size_t srcLen, const unsigned char *subString, size_t subLen)
 Searches for a substring within a buffer. More...
 
ssize_t findLastSubstring (const unsigned char *source, size_t srcLen, const unsigned char *subString, size_t subLen)
 
OMEstringconvertCaseOfString (const OMEstring &str, uint_fast8_t toLower=0)
 
int caseInsensitiveCompare (const OMEstring &str1, const OMEstring &str2, bool fuzzy=false)
 
OMEstringsubstituteText (const OMEstring &srcStr, const class OMEassoc &v)
 
OMEstringOMEbinaryToBase64 (const OMEstring &source, bool breakIntoLines=true)
 Convert binary data to base64 text encoding. More...
 
OMEstringOMEbase64ToBinary (const OMEstring &source)
 Convert base-64 encoded text to its binary representation. More...
 
size_t OMEhexToBinary (const unsigned char *src, size_t srcLen, unsigned char *dest, size_t destLen)
 Convert hexadecimal text to binary. More...
 
OMEstringOMEhexToBinary (const OMEstring &source)
 Convert a text string of hexadecimal characters into its binary equivalent. More...
 
OMEstringOMEbinaryToHex (const OMEstring &source)
 Convert a string of binary data into a text string of hexadecimal characters. More...
 
OMEstringOMEbinaryToHex (const unsigned char *source, size_t sourceLen)
 Convert binary data to hexadecimal characters. More...
 
OMEstringOMEconvertURIescapes (const OMEstring &source)
 Convert Uniform Resource Identifier escape sequences. More...
 
OMEstringOMEmakeSafeURI (const OMEstring &source)
 Escape any special characters in an Uniform Resource Identifier. More...
 

Variables

const typedef void * OMEstringInROM
 Points to immovable, read-only string data. More...
 

Detailed Description

OME string implementation.

Macro Definition Documentation

◆ _OME_STRING_H

#define _OME_STRING_H   "$Id: OMEstring.h 406 2020-07-12 05:07:33Z geoff $"
Generated: Fri Jul 31 2020 18:19:15
Support Information