Asposecpplib
System::Text::RegularExpressions Namespace Reference

Classes

class  Capture
 Result of single subexpression matching. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  CaptureCollection
 List of captures done by single capturing group. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  Group
 Result of matching done by single capturing group. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  GroupCollection
 List of capture groups in a single match. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  GroupCollectionPtr
 Group collection pointer. This type is a pointer to manage other object's deletion. It should be allocated on stack and passed to functions either by value or by const reference. More...
 
class  Match
 Single match of regexp over string. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  MatchCollection
 Collection of matches done by repeatedly applying regexp to string. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  Regex
 Regular expression that follows C#-like syntax. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 

Typedefs

typedef std::shared_ptr< const UnicodeString > UStringPtr
 Shared UnicodeString to avoid copying. More...
 
typedef SharedPtr< CaptureCapturePtr
 Pointer to single capture object. More...
 
typedef SharedPtr< CaptureCollectionCaptureCollectionPtr
 Pointer to capture collection. More...
 
typedef SharedPtr< GroupGroupPtr
 Pointer to group. More...
 
typedef System::SharedPtr< RegexRegexPtr
 Regex pointer. More...
 
typedef SharedPtr< MatchMatchPtr
 Match pointer. More...
 
typedef SharedPtr< MatchCollectionMatchCollectionPtr
 Match collection pointer. More...
 
using MatchEvaluator = System::MulticastDelegate< System::String(MatchPtr)>
 Delegate type to evaluate match. More...
 

Enumerations

enum  RegexOptions {
  RegexOptions::None =0, RegexOptions::Compiled =1, RegexOptions::CultureInvariant =2, RegexOptions::ECMAScript =4,
  RegexOptions::ExplicitCapture =8, RegexOptions::IgnoreCase =16, RegexOptions::IgnorePatternWhitespace =32, RegexOptions::Multiline =64,
  RegexOptions::RightToLeft =128, RegexOptions::Singleline =256
}
 Regex options. More...
 

Functions

 DECLARE_ENUM_OPERATORS (System::Text::RegularExpressions::RegexOptions)
 Declaration of template arithmetic operators for values of RegexOptions enum type. More...
 

Typedef Documentation

◆ CaptureCollectionPtr

◆ CapturePtr

Pointer to single capture object.

◆ GroupPtr

◆ MatchCollectionPtr

◆ MatchEvaluator

◆ MatchPtr

◆ RegexPtr

◆ UStringPtr

typedef std::shared_ptr<const UnicodeString> System::Text::RegularExpressions::UStringPtr

Shared UnicodeString to avoid copying.

Enumeration Type Documentation

◆ RegexOptions

Regex options.

Enumerator
None 

Default behavior.

Compiled 

Compile regex for performance. Always done by default.

CultureInvariant 

Use culture-invariant matching. Ignored.

ECMAScript 

Use ECMAScript syntax. Ignored.

ExplicitCapture 

Explicit capturing only. Ignored.

IgnoreCase 

Ignore case when matching.

IgnorePatternWhitespace 

Ignore whitespaces in pattern. Unsupported.

Multiline 

Treat '^' and '$' as beginning and end of line, not whole string.

RightToLeft 

Right-to-left matching. Unsupported.

Singleline 

Makes '.' match any character without exceptions (normally, newline characters are not matched).

Function Documentation

◆ DECLARE_ENUM_OPERATORS()

System::Text::RegularExpressions::DECLARE_ENUM_OPERATORS ( System::Text::RegularExpressions::RegexOptions  )

Declaration of template arithmetic operators for values of RegexOptions enum type.