Skip to content

easyextensionshelpers StringHelpers

BigMakCode edited this page Aug 5, 2024 · 1 revision

StringHelpers Public class

Description

String helpers.

Diagram

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

Members

Methods

Public Static methods

Returns Name
string CreatePseudoRandomString(...)
Fast generate pseudo random string with StringHelpers.DefaultCharset and string length.
string CreateRandomString(...)
Generate random string with StringHelpers.DefaultCharset and string length.
string RemoveSpaces(string comment)
Remove spaces from string - trim, replace new lines and multiple spaces.

Details

Summary

String helpers.

Methods

CreatePseudoRandomString [1/3]

public static string CreatePseudoRandomString()
Summary

Fast generate pseudo random string with StringHelpers.DefaultCharset and string length.

Returns

Pseudo-random string.

CreatePseudoRandomString [2/3]

public static string CreatePseudoRandomString(int length)
Arguments
Type Name Description
int length Result string length.
Summary

Fast generate pseudo random string with StringHelpers.DefaultCharset and specified string length.

Returns

Pseudo-random string.

CreatePseudoRandomString [3/3]

public static string CreatePseudoRandomString(int length, string charset)
Arguments
Type Name Description
int length Result string length.
string charset Generator charset.
Summary

Fast generate pseudo random string with specified charset and string length.

Returns

Pseudo-random string.

CreateRandomString [1/3]

public static string CreateRandomString()
Summary

Generate random string with StringHelpers.DefaultCharset and string length.

Returns

Really random string.

CreateRandomString [2/3]

public static string CreateRandomString(int length)
Arguments
Type Name Description
int length Result string length.
Summary

Generate random string with StringHelpers.DefaultCharset and specified string length.

Returns

Really random string.

CreateRandomString [3/3]

public static string CreateRandomString(int length, string charset)
Arguments
Type Name Description
int length Result string length.
string charset Generator charset.
Summary

Generate random string with specified charset and string length.

Returns

Really random string.

RemoveSpaces

public static string RemoveSpaces(string comment)
Arguments
Type Name Description
string comment
Summary

Remove spaces from string - trim, replace new lines and multiple spaces.

Returns

Generated with ModularDoc

Clone this wiki locally