JCL Help:StrStripNonNumberChars@AnsiString
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: StrStripNonNumberChars Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Removes all non-number characters from a string.
Pascal
function StrStripNonNumberChars(const S: string): string;
function StrStripNonNumberChars(const S: AnsiString): AnsiString;
Parameters
Parameters | Description |
const S: string | The string from which to remove non-number characters. |
Return Value
The string after all non-number characters are removed.
Description
StrStripNonNumberChars removes all non-number characters from the specified string. Hence the resulting string will contain only number characters. Testing whether the individual characters are numbers is done using the CharIsNumberChar routine and therefore characters that qualify are all digits (0..9), signs (+, -) and decimal separators.
About
Unit
Donator
Anthony Steele
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