JCL Help:StrIsAlphaNum@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests whether S contains only alpha-numerical characters.


Pascal

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


Parameters

Parameters Description
const S: string The string to test


Return Value

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


Description

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


See Also

StrIsAlpha StrConsistsOfNumberChars StrIsAlphaNumUnderscore


About

Unit

JclAnsiStrings


Donator

Marcel van Brakel


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