Logo

Programming-Idioms

History of Idiom 110 > diff from v10 to v11

Edit summary for version 11 by :
New Ada implementation by user [Smaehtin]

Version 10

2016-02-16, 19:14:40

Version 11

2016-02-16, 21:08:42

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Imports
with Ada.Strings.Fixed;
use Ada.Strings.Fixed;
Code
Blank := Index_Non_Blank (Str) = 0;