JCL Help:StrIsAlphaNumUnderscore@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests whether S contains only alpha-numerical and underscore characters.


Pascal

 function StrIsAlphaNumUnderscore(const S: string): Boolean;
function StrIsAlphaNumUnderscore(const S: AnsiString): Boolean;


Parameters

Parameters Description
const S: string The string to test


Return Value

If S contains only alpha-numerical and underscore characters the result is True, otherwise the result is False.


Description

StrIsAlphaNum tests whether the supplied string consists only of alpha-numerical and underscore characters. That is, whether or not all individual characters come from the ['a'..'z', 'A'..'Z', '0'..'9', '_'] set.


See Also

StrIsAlpha StrConsistsOfNumberChars


About

Unit

JclAnsiStrings


Donator

Anthony Steele


Notes

If S is an empty string the result is False.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page