System.Text.RegularExpressions.RegexCharClass.IsEmpty C# (CSharp) Method

IsEmpty() static private method

static private IsEmpty ( String charClass ) : bool
charClass String
return bool
        internal static bool IsEmpty(String charClass) {
            if (charClass[CATEGORYLENGTH] == 0 && charClass[FLAGS] == 0 && charClass[SETLENGTH] == 0 && !IsSubtraction(charClass))
                return true;
            else
                return false;
        }

Usage Example

Esempio n. 1
0
 internal RegexNode ReduceSet()
 {
     if (RegexCharClass.IsEmpty(this._str))
     {
         this._type = 0x16;
         this._str  = null;
     }
     else if (RegexCharClass.IsSingleton(this._str))
     {
         this._ch    = RegexCharClass.SingletonChar(this._str);
         this._str   = null;
         this._type += -2;
     }
     else if (RegexCharClass.IsSingletonInverse(this._str))
     {
         this._ch    = RegexCharClass.SingletonChar(this._str);
         this._str   = null;
         this._type += -1;
     }
     return(this);
 }
All Usage Examples Of System.Text.RegularExpressions.RegexCharClass::IsEmpty