WikiCrawler/Utility/Dimensions.cs
/// <summary>
/// Attempts to parse the specified string into a unit.
/// </summary>
Attempts to parse the specified string into a unit.
Attempts to parse the specified string into a unit .
private static bool TryParseUnit(string raw, out string unit)
	{
		raw = raw.Trim(new char[] { '.', ' ' });
		switch (raw.ToLower())
		{
			case "cm":
			case "m":
			case "mm":
			case "in":
			case "ft":
				unit = raw.ToLower();
				return true;
			default:
				unit = "";
				return false;
		}
	}
private static bool TryParseUnit ( string raw , out string unit ) { raw = raw . Trim ( new char [ ] { ' ' , ' ' } ) ; switch ( raw . ToLower ( ) ) { case " " : case " " : case " " : case " " : case " " : unit = raw . ToLower ( ) ; return true ; default : unit = " " ; return false ; } }
Attempts to parse the specified string into a unit.
Attempts to parse the specified string into a unit .
raw
string
string
out