Class StringImpl
Inheritance
System.Object
StringImpl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Cosmos.Core_Plugs.dll
Syntax
public static class StringImpl
Methods
|
Improve this Doc
View Source
Compare(String, Int32, String, Int32, Int32, StringComparison)
Declaration
public static int Compare(string strA, int indexA, string strB, int indexB, int length, StringComparison comparisonType)
Parameters
Type |
Name |
Description |
System.String |
strA |
|
System.Int32 |
indexA |
|
System.String |
strB |
|
System.Int32 |
indexB |
|
System.Int32 |
length |
|
System.StringComparison |
comparisonType |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareOrdinalHelper(String, Int32, Int32, String, Int32, Int32)
Declaration
public static int CompareOrdinalHelper(string strA, int indexA, int countA, string strB, int indexB, int countB)
Parameters
Type |
Name |
Description |
System.String |
strA |
|
System.Int32 |
indexA |
|
System.Int32 |
countA |
|
System.String |
strB |
|
System.Int32 |
indexB |
|
System.Int32 |
countB |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(String, String)
Declaration
public static int CompareTo(string aThis, string other)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
other |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Contains(String, String)
Declaration
public static bool Contains(string aThis, string value)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Ctor(String, Char*, Int32, Int32, ref String, ref Int32, Char*)
Declaration
public static void Ctor(string aThis, char *aChars, int start, int length, ref string aStringEmpty, ref int aStringLength, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char* |
aChars |
|
System.Int32 |
start |
|
System.Int32 |
length |
|
System.String |
aStringEmpty |
|
System.Int32 |
aStringLength |
|
System.Char* |
aFirstChar |
|
|
Improve this Doc
View Source
Ctor(String, Char*, ref String, ref Int32, Char*)
Declaration
public static void Ctor(string aThis, char *aChars, ref string aStringEmpty, ref int aStringLength, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char* |
aChars |
|
System.String |
aStringEmpty |
|
System.Int32 |
aStringLength |
|
System.Char* |
aFirstChar |
|
|
Improve this Doc
View Source
Ctor(String, Char, Int32, ref String, ref Int32, Char*)
Declaration
public static void Ctor(string aThis, char aChar, int aLength, ref string aStringEmpty, ref int aStringLength, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char |
aChar |
|
System.Int32 |
aLength |
|
System.String |
aStringEmpty |
|
System.Int32 |
aStringLength |
|
System.Char* |
aFirstChar |
|
|
Improve this Doc
View Source
Ctor(String, Char[], Int32, Int32, ref String, ref Int32, Char*)
Declaration
public static void Ctor(string aThis, char[] aChars, int start, int length, ref string aStringEmpty, ref int aStringLength, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char[] |
aChars |
|
System.Int32 |
start |
|
System.Int32 |
length |
|
System.String |
aStringEmpty |
|
System.Int32 |
aStringLength |
|
System.Char* |
aFirstChar |
|
|
Improve this Doc
View Source
Ctor(String, Char[], ref String, ref Int32, Char*)
Declaration
public static void Ctor(string aThis, char[] aChars, ref string aStringEmpty, ref int aStringLength, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char[] |
aChars |
|
System.String |
aStringEmpty |
|
System.Int32 |
aStringLength |
|
System.Char* |
aFirstChar |
|
|
Improve this Doc
View Source
Ctor(String, ReadOnlySpan<Char>, ref String, ref Int32, Char*)
Declaration
public static void Ctor(string aThis, ReadOnlySpan<char> value, ref string aStringEmpty, ref int aStringLength, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.ReadOnlySpan<System.Char> |
value |
|
System.String |
aStringEmpty |
|
System.Int32 |
aStringLength |
|
System.Char* |
aFirstChar |
|
|
Improve this Doc
View Source
Ctor(String, SByte*)
Declaration
public static void Ctor(string aThis, sbyte *aValue)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.SByte* |
aValue |
|
|
Improve this Doc
View Source
Ctor(String, SByte*, Int32, Int32)
Declaration
public static void Ctor(string aThis, sbyte *aValue, int aStartIndex, int aLength)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.SByte* |
aValue |
|
System.Int32 |
aStartIndex |
|
System.Int32 |
aLength |
|
|
Improve this Doc
View Source
EndsWith(String, String, Boolean, CultureInfo)
Declaration
public static bool EndsWith(string aThis, string aSubStr, bool aIgnoreCase, CultureInfo aCulture)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aSubStr |
|
System.Boolean |
aIgnoreCase |
|
System.Globalization.CultureInfo |
aCulture |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
EndsWith(String, String, StringComparison)
Declaration
public static bool EndsWith(string aThis, string aSubStr, StringComparison aComparison)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aSubStr |
|
System.StringComparison |
aComparison |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(String, String, StringComparison)
Declaration
public static bool Equals(string aThis, string aThat, StringComparison aComparison)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aThat |
|
System.StringComparison |
aComparison |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
EqualsHelper(String, String)
Declaration
public static bool EqualsHelper(string aStrA, string aStrB)
Parameters
Type |
Name |
Description |
System.String |
aStrA |
|
System.String |
aStrB |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
FastAllocateString(Int32)
Declaration
public static string FastAllocateString(int aLength)
Parameters
Type |
Name |
Description |
System.Int32 |
aLength |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(IFormatProvider aProvider, string aFormat, object aArg0)
Parameters
Type |
Name |
Description |
System.IFormatProvider |
aProvider |
|
System.String |
aFormat |
|
System.Object |
aArg0 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(IFormatProvider aProvider, string aFormat, object aArg0, object aArg1)
Parameters
Type |
Name |
Description |
System.IFormatProvider |
aProvider |
|
System.String |
aFormat |
|
System.Object |
aArg0 |
|
System.Object |
aArg1 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(IFormatProvider aProvider, string aFormat, object aArg0, object aArg1, object aArg2)
Parameters
Type |
Name |
Description |
System.IFormatProvider |
aProvider |
|
System.String |
aFormat |
|
System.Object |
aArg0 |
|
System.Object |
aArg1 |
|
System.Object |
aArg2 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(IFormatProvider aProvider, string aFormat, params object[] aArgs)
Parameters
Type |
Name |
Description |
System.IFormatProvider |
aProvider |
|
System.String |
aFormat |
|
System.Object[] |
aArgs |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(string aFormat, object aArg0)
Parameters
Type |
Name |
Description |
System.String |
aFormat |
|
System.Object |
aArg0 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(string aFormat, object aArg0, object aArg1)
Parameters
Type |
Name |
Description |
System.String |
aFormat |
|
System.Object |
aArg0 |
|
System.Object |
aArg1 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(string aFormat, object aArg0, object aArg1, object aArg2)
Parameters
Type |
Name |
Description |
System.String |
aFormat |
|
System.Object |
aArg0 |
|
System.Object |
aArg1 |
|
System.Object |
aArg2 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Format(string aFormat, params object[] aArgs)
Parameters
Type |
Name |
Description |
System.String |
aFormat |
|
System.Object[] |
aArgs |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
get_Chars(UInt32*, Int32, Char*)
Declaration
public static char get_Chars(uint *aThis, int aIndex, char *aFirstChar)
Parameters
Type |
Name |
Description |
System.UInt32* |
aThis |
|
System.Int32 |
aIndex |
|
System.Char* |
aFirstChar |
|
Returns
Type |
Description |
System.Char |
|
|
Improve this Doc
View Source
get_Length(UInt32*, ref Int32)
Declaration
public static int get_Length(uint *aThis, ref int aLength)
Parameters
Type |
Name |
Description |
System.UInt32* |
aThis |
|
System.Int32 |
aLength |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetNonRandomizedHashCode(String)
Declaration
public static int GetNonRandomizedHashCode(string aString)
Parameters
Type |
Name |
Description |
System.String |
aString |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetStorage(String)
Declaration
public static uint GetStorage(string aString)
Parameters
Type |
Name |
Description |
System.String |
aString |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
IndexOf(String, Char, Int32, Int32)
Declaration
public static int IndexOf(string aThis, char value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IndexOf(String, String)
Declaration
public static int IndexOf(string aThis, string aValue)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aValue |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IndexOf(String, String, Int32, Int32, StringComparison)
Declaration
public static int IndexOf(string aThis, string aSubstring, int aIdx, int aLength, StringComparison aComparison)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aSubstring |
|
System.Int32 |
aIdx |
|
System.Int32 |
aLength |
|
System.StringComparison |
aComparison |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IndexOfAny(String, Char[], Int32, Int32)
Declaration
public static int IndexOfAny(string aThis, char[] aSeparators, int aStartIndex, int aLength)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char[] |
aSeparators |
|
System.Int32 |
aStartIndex |
|
System.Int32 |
aLength |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Insert(String, Int32, String)
Declaration
public static string Insert(string aThis, int aStartPos, string aValue)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Int32 |
aStartPos |
|
System.String |
aValue |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IsAscii(String)
Declaration
public static bool IsAscii(string aThis)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LastIndexOf(String, Char, Int32, Int32)
Declaration
public static int LastIndexOf(string aThis, char aChar, int aStartIndex, int aCount)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char |
aChar |
|
System.Int32 |
aStartIndex |
|
System.Int32 |
aCount |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LastIndexOf(String, String)
Declaration
public static int LastIndexOf(string aThis, string aString)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aString |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LastIndexOf(String, String, Int32)
Declaration
public static int LastIndexOf(string aThis, string aString, int aIndex)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aString |
|
System.Int32 |
aIndex |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LastIndexOf(String, String, Int32, Int32)
Declaration
public static int LastIndexOf(string aThis, string aString, int aIndex, int aCount)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aString |
|
System.Int32 |
aIndex |
|
System.Int32 |
aCount |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LastIndexOfAny(String, Char[], Int32, Int32)
Declaration
public static int LastIndexOfAny(string aThis, char[] aChars, int aStartIndex, int aCount)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char[] |
aChars |
|
System.Int32 |
aStartIndex |
|
System.Int32 |
aCount |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Replace(String, Char, Char)
Declaration
public static string Replace(string aThis, char oldValue, char newValue)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Char |
oldValue |
|
System.Char |
newValue |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Replace(String, String, String)
Declaration
public static string Replace(string aThis, string oldValue, string newValue)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
oldValue |
|
System.String |
newValue |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
StartsWith(String, String, Boolean, CultureInfo)
Declaration
public static bool StartsWith(string aThis, string aSubStr, bool aIgnoreCase, CultureInfo aCulture)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aSubStr |
|
System.Boolean |
aIgnoreCase |
|
System.Globalization.CultureInfo |
aCulture |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
StartsWith(String, String, StringComparison)
Declaration
public static bool StartsWith(string aThis, string aSubstring, StringComparison aComparison)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aSubstring |
|
System.StringComparison |
aComparison |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToCharArray(String)
Declaration
public static char[] ToCharArray(string aThis)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
Returns
Type |
Description |
System.Char[] |
|
|
Improve this Doc
View Source
ToLower(String)
Declaration
public static string ToLower(string aThis)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToLower(String, CultureInfo)
Declaration
public static string ToLower(string aThis, CultureInfo aCulture)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Globalization.CultureInfo |
aCulture |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToLowerInvariant(String)
Declaration
public static string ToLowerInvariant(string aThis)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToUpper(String)
Declaration
public static string ToUpper(string aThis)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToUpper(String, CultureInfo)
Declaration
public static string ToUpper(string aThis, CultureInfo aCulture)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.Globalization.CultureInfo |
aCulture |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToUpperInvariant(String)
Declaration
public static string ToUpperInvariant(string aThis)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TrimStart(String, String)
Declaration
public static string TrimStart(string aThis, string aSubStr)
Parameters
Type |
Name |
Description |
System.String |
aThis |
|
System.String |
aSubStr |
|
Returns
Type |
Description |
System.String |
|