MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
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< ConvertPathNameOption > ConvertPathNameOptions
 Path name conversion options.
typedef OptionSet< DisplayPathNameOption > DisplayPathNameOptions

Enumerations

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

Functions

const char * StrChr (const char *s, int ch)
const wchar_t * StrChr (const wchar_t *s, wint_t ch)
template<typename CharType>
size_t StrLen (const CharType *s)
template<>
size_t StrLen< char > (const char *s)
template<>
size_t StrLen< wchar_t > (const wchar_t *s)
int CeeStringCompare (const char *s1, const char *s2, bool ignoreCase)
int CeeStringCompare (const char *s1, const char *s2, size_t n, bool ignoreCase)
int CeeStringCompare (const char *s1, const char *s2)
int StringCompare (const std::string &s1, const std::string &s2, bool ignoreCase)
int StringCompare (const std::string &s1, const std::string &s2)
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 std::string &rhs)
std::ostream & operator<< (std::ostream &os, const PathName &path)

Detailed Description

Generic utilities.

Typedef Documentation

◆ ConvertPathNameOptions

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.

CleanUp 

Clean up the path name.

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.