Core Function IsGraph

From Sputnik Wiki
Revision as of 12:37, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
IsGraph( <expression> )

Contents

Description

Checks if the given string contains only characters that have a graphical representation, i.e.

It is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), or a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~), or any graphical character.

Parameters

expression

The string to use.

Return Value

Success: Returns 1.

Failure: Returns 0.

Remarks

None.

Example

for (my $ndx=0; $ndx <= @CHAR_MAX; $ndx++)
	if (isgraph($ndx))
		printf("%c", $ndx);
printf("\n");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox