StringExt ClassString extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.System.StringExt
Namespace: UltimateXR.Extensions.System
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class StringExt
The StringExt type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | GetMd5 | Gets the MD5 hash value of a string. |
![]() ![]() | GetMd5x2 | Gets the double MD5 hash value of a string. |
![]() ![]() | GetOccurrenceCount | Gets the number of occurrences of a string in another string. |
![]() ![]() | GetSha256 | Gets the SHA-256 hash value of a string. |
![]() ![]() | GetSha256x2 | Gets the double SHA-256 hash value of a string. |
![]() ![]() | IsSubDirectoryOf | Checks if a path is a child of another path. Adapted from https://stackoverflow.com/questions/8091829/how-to-check-if-one-path-is-a-child-of-another-path |
![]() ![]() | RandomString | Creates a random string. |
![]() ![]() | ReplaceInvalidDirPathChars | Replaces the invalid characters in a directory path with a given character. |
![]() ![]() | ReplaceInvalidFilePathChars | Replaces the invalid characters in a file path with a given character. |
![]() ![]() | ReplaceInvalidPathChars | Replaces the invalid characters in a path with a given character. |
![]() ![]() | SplitCamelCase | Splits a string using CamelCase. |
![]() ![]() | ThrowIfNullOrEmpty | Throws an exception if the string is null or empty. |
![]() ![]() | ThrowIfNullOrWhitespace | Throws an exception if the string is null or only contains whitespaces. |