Scripts/String.ps1
function IsNullOrEmpty([string]$inputString) { <# .SYNOPSIS Checks whether the given string is null or empty. #> return [string]::IsNullOrEmpty($inputString) } function GetLineCount([string]$inputString) { <# .SYNOPSIS Gets the linecount of the given string. #> $measureResult = $inputString | Measure-Object -Line return $measureResult.Lines } |