/// <summary> /// Check whether the specified char has a /// particular type flag set. /// </summary> /// <param name="c">The character.</param> /// <param name="type">The CharTypeBits entry to compare to.</param> /// <returns>bool - true or false</returns> public bool IsCharType(int c, CharTypeBits type) { return((charTypes[c] & (byte)type) != 0); }
/// <summary> /// Check whether the specified char has a /// particular type flag set. /// </summary> /// <param name="c">The character.</param> /// <param name="type">The CharTypeBits entry to compare to.</param> /// <returns>bool - true or false</returns> public bool IsCharType(int c, CharTypeBits type) { return ((charTypes[c] & (byte)type) != 0); }
/// <summary> /// Check whether the specified char type byte has a /// particular type flag set. /// </summary> /// <param name="ctype">The char type byte.</param> /// <param name="type">The CharTypeBits entry to compare to.</param> /// <returns>bool - true or false</returns> public bool IsCharType(byte ctype, CharTypeBits type) { return((ctype & (byte)type) != 0); }
/// <summary> /// Check whether the specified char type byte has a /// particular type flag set. /// </summary> /// <param name="ctype">The char type byte.</param> /// <param name="type">The CharTypeBits entry to compare to.</param> /// <returns>bool - true or false</returns> public bool IsCharType(byte ctype, CharTypeBits type) { return ((ctype & (byte)type) != 0); }