Skip to content

easyextensions StringExtensions

BigMakCode edited this page Aug 5, 2024 · 1 revision

StringExtensions Public class

Description

String extensions.

Diagram

 flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph EasyExtensions
EasyExtensions.StringExtensions[[StringExtensions]]
end
Loading

Members

Methods

Public Static methods

ReturnsName
longReadOnlyNumbers(string str)
Read only numbers from specified string.
stringSHA512(string str)
Create SHA512 hash of specified text string.
stringToLowerFirstLetter(string text)
Make first letter as lower case. If text is null or whitespace - returns String.Empty
stringToUpperFirstLetter(string text)
Make first letter as upper case. If text is null or whitespace - returns String.Empty

Details

Summary

String extensions.

Methods

ToLowerFirstLetter

publicstaticstringToLowerFirstLetter(stringtext)
Arguments
TypeNameDescription
stringtext
Summary

Make first letter as lower case. If text is null or whitespace - returns String.Empty

Returns

Text with lower case first letter.

ToUpperFirstLetter

publicstaticstringToUpperFirstLetter(stringtext)
Arguments
TypeNameDescription
stringtext
Summary

Make first letter as upper case. If text is null or whitespace - returns String.Empty

Returns

Text with upper case first letter.

SHA512

publicstaticstringSHA512(stringstr)
Arguments
TypeNameDescription
stringstr
Summary

Create SHA512 hash of specified text string.

Returns

SHA512 hash.

ReadOnlyNumbers

publicstaticlongReadOnlyNumbers(stringstr)
Arguments
TypeNameDescription
stringstr
Summary

Read only numbers from specified string.

Returns

Parsed number, or -1 by default.

Generated withModularDoc

Clone this wiki locally