UnityEssentials
Small but useful tools and features for Unity
Static Public Member Functions | List of all members
UnityEngine.StringExtensions Class Reference

Extensions for string More...

Collaboration diagram for UnityEngine.StringExtensions:
Collaboration graph

Static Public Member Functions

static string EnsureEndsWithDot (this string str)
 Ensures that the string ends with a dot ('.'). More...
 
static bool IsNullEmptyOrWhiteSpace (this string str)
 Indicates whether a specified string is null, empty, or consists only of white-space characters. More...
 
static bool IsNullOrEmpty (this string str)
 Indicates whether the specified string is null or an empty string (""). More...
 

Detailed Description

Extensions for string

Definition at line 7 of file StringExtensions.cs.

Member Function Documentation

◆ EnsureEndsWithDot()

static string UnityEngine.StringExtensions.EnsureEndsWithDot ( this string  str)
static

Ensures that the string ends with a dot ('.').

Returns
The string with an added dot at the end if it was not there.

Definition at line 14 of file StringExtensions.cs.

◆ IsNullEmptyOrWhiteSpace()

static bool UnityEngine.StringExtensions.IsNullEmptyOrWhiteSpace ( this string  str)
static

Indicates whether a specified string is null, empty, or consists only of white-space characters.

Returns
True if the value parameter is null or Empty, or if value consists exclusively of white-space characters.

Definition at line 24 of file StringExtensions.cs.

◆ IsNullOrEmpty()

static bool UnityEngine.StringExtensions.IsNullOrEmpty ( this string  str)
static

Indicates whether the specified string is null or an empty string ("").

Returns
True if the value parameter is null or an empty string (""); otherwise, false.

Definition at line 33 of file StringExtensions.cs.


The documentation for this class was generated from the following file: