MiKTeX 23.10-next
A scalable TeX distribution
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
MiKTeX::Util Namespace Reference

Generic utilities. More...

Classes

class  CharBuffer
 Instances of this class store characters. More...
 
class  DateUtil
 
class  Flattener
 
class  OptionSet
 
class  PathName
 Instances of this class can be used to store path names. More...
 
class  PathNameParser
 
class  PathNameUtil
 
class  StringUtil
 
class  Tokenizer
 

Typedefs

typedef OptionSet< ConvertPathNameOptionConvertPathNameOptions
 Path name conversion options. More...
 
typedef OptionSet< DisplayPathNameOption > DisplayPathNameOptions
 

Enumerations

enum class  ConvertPathNameOption {
  ToUnix , ToDos , MakeLower , MakeUpper ,
  ToExtendedLengthPathName , MakeFullyQualified , Canonicalize
}
 Path name conversion option enum class. More...
 
enum class  DisplayPathNameOption
 

Functions

const char * StrChr (const char *lpsz, int ch)
 
const wchar_t * StrChr (const wchar_t *lpsz, wint_t ch)
 
template<typename CharType >
size_t StrLen (const CharType *lpsz)
 
template<>
size_t StrLen< char > (const char *lpsz)
 
template<>
size_t StrLen< wchar_t > (const wchar_t *lpsz)
 
int StringCompare (const char *lpsz1, const char *lpsz2, bool ignoreCase)
 
int StringCompare (const char *lpsz1, const char *lpsz2, size_t n, bool ignoreCase)
 
int StringCompare (const char *lpsz1, const char *lpsz2)
 
bool operator< (const PathName &lhs, const PathName &rhs)
 
bool operator== (const PathName &lhs, const PathName &rhs)
 
bool operator!= (const PathName &lhs, const PathName &rhs)
 
PathName operator/ (const PathName &lhs, const PathName &rhs)
 
std::ostream & operator<< (std::ostream &os, const PathName &path)
 

Detailed Description

Generic utilities.

Typedef Documentation

◆ ConvertPathNameOptions

Path name conversion options.

Enumeration Type Documentation

◆ ConvertPathNameOption

Path name conversion option enum class.

Enumerator
ToUnix 

Replaces backslashes with slashes.

ToDos 

Replaces slashes with backslashes.

MakeLower 

Replaces capital letters with their small letter counterpart.

MakeUpper 

Replaces small letters with their capital letter counterpart.

ToExtendedLengthPathName 

Prefix with \?\ to create an extended-length path name.

MakeFullyQualified 

Makes the path name fully qualified.

Canonicalize 

Resolve symbolic links.

Function Documentation

◆ operator!=()

bool MiKTeX::Util::operator!= ( const PathName lhs,
const PathName rhs 
)
inline

Compares two path names.

Parameters
lhsThe first path name.
rhsThe second path name.
Returns
Returns true, if both path names compare unequal.

◆ operator==()

bool MiKTeX::Util::operator== ( const PathName lhs,
const PathName rhs 
)
inline

Compares two path names.

Parameters
lhsThe first path name.
rhsThe second path name.
Returns
Returns true, if both path names compare equal.