Mako 7.3.0 API
edlstring.h File Reference

EDLString and EDLSysString classes and associated EDL string manipulation functions. More...

#include <string>
#include <sstream>
#include <limits>
#include <edl/platform.h>
#include <edl/edltypes.h>
#include <edl/edlvector.h>

Functions

uint8 sxtob (char c)
 sxtob converts a hexadecimal character into corresponding (unsigned) integer value. (Note that there is no guard against being supplied with non-hexadecimal characters) More...
 
bool edlstringEqualsIgnoreCaseCnt (const EDLString &str1, const EDLString &str2, size_t len)
 edlstringEqualsIgnoreCaseCnt performs a case-insensitive maximum-length-constrained string equality test More...
 
size_t edlstringFind (const EDLString &str, EDLString &searchStr)
 edlstringFind searches for a substring within a larger string. More...
 
void edlstringSubstr (const EDLString &str, EDLString &result, size_t start, size_t end)
 edlstringSubstr returns a substring from specified start and end points from a larger string More...
 
EDL_API EDLString EDLSysStringToEDLString (const EDLSysString &edlSysString)
 EDLSysStringToEDLString converts an EDLSysString (UTF8) to an EDLString (UTF16 or UTF32 depending on platform). More...
 
EDL_API EDLSysString EDLStringToEDLSysString (const EDLString &edlString)
 EDLStringToEDLSysString converts an (UTF16 or UTF32 depending on platform) EDLString to an EDLSysString (UTF8). More...
 

Detailed Description

EDLString and EDLSysString classes and associated EDL string manipulation functions.

Function Documentation

◆ edlstringEqualsIgnoreCaseCnt()

bool edlstringEqualsIgnoreCaseCnt ( const EDLString &  str1,
const EDLString &  str2,
size_t  len 
)
inline

edlstringEqualsIgnoreCaseCnt performs a case-insensitive maximum-length-constrained string equality test

Parameters
str1First string
str2Second string
lenNumber of characters to compare
Returns
bool True if the two strings are equal, false if not

◆ edlstringFind()

size_t edlstringFind ( const EDLString &  str,
EDLString &  searchStr 
)
inline

edlstringFind searches for a substring within a larger string.

Parameters
strString to be searched
searchStrSubstring to search for
Returns
size_t The starting position of the (first instance of the) substring.

◆ edlstringSubstr()

void edlstringSubstr ( const EDLString &  str,
EDLString &  result,
size_t  start,
size_t  end 
)
inline

edlstringSubstr returns a substring from specified start and end points from a larger string

Parameters
strSource string
resultString to accept result
startStart point
endEnd point

◆ EDLStringToEDLSysString()

EDL_API EDLSysString EDLStringToEDLSysString ( const EDLString &  edlString)

EDLStringToEDLSysString converts an (UTF16 or UTF32 depending on platform) EDLString to an EDLSysString (UTF8).

Parameters
edlStringSource string
Returns
EDLSysString Result of conversion

◆ EDLSysStringToEDLString()

EDL_API EDLString EDLSysStringToEDLString ( const EDLSysString &  edlSysString)

EDLSysStringToEDLString converts an EDLSysString (UTF8) to an EDLString (UTF16 or UTF32 depending on platform).

Parameters
edlSysStringSource string
Returns
EDLString Result of conversion

◆ sxtob()

uint8 sxtob ( char  c)
inline

sxtob converts a hexadecimal character into corresponding (unsigned) integer value. (Note that there is no guard against being supplied with non-hexadecimal characters)

Parameters
cThe hexadecimal digit
Returns
uint8 The unsigned integer value