Click or drag to resize

StringExtensions Methods

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAnyStringIn(IEnumerableString, StringOrRegularExpression)
Returns true if any value in s is present in values (corresponds to the $in filter operator).
Public methodStatic memberAnyStringIn(IEnumerableString, IEnumerableStringOrRegularExpression)
Returns true if any value in s is present in values (corresponds to the $in filter operator).
Public methodStatic memberAnyStringNin(IEnumerableString, StringOrRegularExpression)
Returns true if any value in s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberAnyStringNin(IEnumerableString, IEnumerableStringOrRegularExpression)
Returns true if any value in s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberIndexOfBytes(String, String)
Searches a string for an occurrence of a substring and returns the UTF-8 byte index (zero-based) of the first occurrence.
Public methodStatic memberIndexOfBytes(String, String, Int32)
Searches a string for an occurrence of a substring and returns the UTF-8 byte index (zero-based) of the first occurrence.
Public methodStatic memberIndexOfBytes(String, String, Int32, Int32)
Searches a string for an occurrence of a substring and returns the UTF-8 byte index (zero-based) of the first occurrence.
Public methodStatic memberStringIn(String, StringOrRegularExpression)
Returns true if s is present in values (corresponds to the $in filter operator).
Public methodStatic memberStringIn(String, IEnumerableStringOrRegularExpression)
Returns true if s is present in values (corresponds to the $in filter operator).
Public methodStatic memberStringNin(String, StringOrRegularExpression)
Returns true if s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberStringNin(String, IEnumerableStringOrRegularExpression)
Returns true if s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberStrLenBytes
Returns the number of UTF-8 encoded bytes in the specified string.
Public methodStatic memberSubstrBytes
Returns the number of UTF-8 encoded bytes in the specified string.
Top
See Also