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

Returns Name
long ReadOnlyNumbers(string str)
Read only numbers from specified string.
string SHA512(string str)
Create SHA512 hash of specified text string.
string ToLowerFirstLetter(string text)
Make first letter as lower case. If text is null or whitespace - returns String.Empty
string ToUpperFirstLetter(string text)
Make first letter as upper case. If text is null or whitespace - returns String.Empty

Details

Summary

String extensions.

Methods

ToLowerFirstLetter

public static string ToLowerFirstLetter(string text)
Arguments
Type Name Description
string text
Summary

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

Returns

Text with lower case first letter.

ToUpperFirstLetter

public static string ToUpperFirstLetter(string text)
Arguments
Type Name Description
string text
Summary

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

Returns

Text with upper case first letter.

SHA512

public static string SHA512(string str)
Arguments
Type Name Description
string str
Summary

Create SHA512 hash of specified text string.

Returns

SHA512 hash.

ReadOnlyNumbers

public static long ReadOnlyNumbers(string str)
Arguments
Type Name Description
string str
Summary

Read only numbers from specified string.

Returns

Parsed number, or -1 by default.

Generated with ModularDoc

Clone this wiki locally