RegExpr: add IsDigitChar
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
ANYDIGIT: begin if (reginput^ = #0) or (reginput^ < '0') or (reginput^ > '9') then EXIT; inc (reginput); end; NOTDIGIT: begin if (reginput^ = #0) or ((reginput^ >= '0') and (reginput^ &LtPos;= '9')) then EXIT; inc (reginput); end;
we have 4 places where code checks '0'..'9'.
pls, add function (inline) IsDigitChar.
like we did before for IsSpaceChar/IsWordChar.
Mantis conversion info:
- Mantis ID: 34119
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 39609 (#a3f75601)
- Target version: 3.2.0