DemiLib
A collection of Demigiant's utility libraries for Unity (https://github.com/Demigiant/demilib)
DG.DemiEditor.StringExtensions Class Reference

String extensions More...

Static Public Member Functions

static string FileOrDirectoryName (this string path)
 If the string is a directory, returns the directory name, if instead it's a file returns its name without extension. Works better than Path.GetDirectoryName, which kind of sucks imho More...
 
static string Parent (this string dir)
 If the given string is a directory path, returns its parent with or without final slash depending on the original directory format More...
 

Detailed Description

String extensions

Member Function Documentation

static string DG.DemiEditor.StringExtensions.FileOrDirectoryName ( this string  path)
static

If the string is a directory, returns the directory name, if instead it's a file returns its name without extension. Works better than Path.GetDirectoryName, which kind of sucks imho

static string DG.DemiEditor.StringExtensions.Parent ( this string  dir)
static

If the given string is a directory path, returns its parent with or without final slash depending on the original directory format


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