Implementation
Pascal

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
import org.apache.commons.lang.StringUtils;
boolean blank = StringUtils.isBlank(s);
import "strings"
blank := strings.TrimSpace(s) == ""
$blank = !$s || $s=~/^\s*$/;
import std.algorithm;
import std.uni;
bool blank = s.all!isSpace;
import Data.Char (isSpace)
b = null (dropWhile isSpace s)
with Ada.Strings.Fixed;
use Ada.Strings.Fixed;
Blank := Index_Non_Blank (Str) = 0;
blank = s is None or s == '' or s.isspace()
import Data.Char (isSpace)
blank :: Bool
blank = all isSpace s
$blank = (empty(trim($s));
$blank = !trim($s);
blank = s.strip.empty?
blank = s ~= nil and s:match("%S") ~= nil
let blank = s.trim().is_empty();
blank = s == nil || String.length(String.trim s) == 0
let blank = s == null || !s.test (/[^\s]/)
val blank = s.trim().isEmpty()
boolean blank = s.trim().isEmpty();