val blank = Option(s).forall(_.trim.isEmpty)
Blank := Index_Non_Blank (Str) = 0;
bool blank = true;
for (const char *p = s; *p; p++) {
if (!isspace(*p)) {
blank = false;
break;
}
}
IDENTIFICATION DIVISION.
PROGRAM-ID. blank string.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 BOOLEAN-BLANK PIC X.
88 BLANK VALUE "T".
88 NOT-BLANK VALUE "F".
PROCEDURE DIVISION.
IF s > SPACES
SET BLANK TO TRUE
ELSE
SET NOT-BLANK TO TRUE
END-IF
STOP RUN.
bool blank = false;
if (s.empty() || std::all_of(s.begin(), s.end(), [](char c){return std::isspace(c);})) {
blank = true;
}
bool blank = string.IsNullOrWhiteSpace(s);
bool blank = string.IsNullOrWhiteSpace(s);
bool blank = s.all!isSpace;
final blank = s == null || s.trim() == '';
bool blank = s?.trim()?.isEmpty ?? true;
blank = s == nil || String.length(String.trim s) == 0
Blank = string:is_empty(string:trim(S)).
blank := strings.TrimSpace(s) == ""
blank :: Bool
blank = all isSpace s
b = null (dropWhile isSpace s)
const blank = s == null || s.trim() === ''
boolean blank = s == null || s.isBlank();
boolean blank = s==null || s.strip().isEmpty();
boolean blank = s==null || s.isBlank();
boolean blank = StringUtils.isBlank(s);
val blank = s.isNullOrBlank()
(setf blank (not (find #\space s :test-not #'eql)))
blank = (s == nil or #string.gsub(s, "^%s*(.-)%s*$", "%1") == 0)
BOOL blank=![s stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet].length;
$blank = (empty(trim($s));
$blank = !$s || $s=~/^\s*$/;
blank = not s or s.isspace()
blank = not s or \
not sub(r'\s+', '', s)
blank = not s or \
not any(x not in ws for x in s)
blank = s.nil? or s.strip.empty?
let blank = s.trim().is_empty();
let blank = s.chars().all(|c| c.is_whitespace());
(define (empty-string? s)
(= (string-length s) 0))
(define blank (empty-string? (string-trim s)))
blank := s isAllSeparators.
Dim blank As Boolean = String.IsNullOrWhitespace(s)