The following functions that are normally available to C programmers are simulated with script examples in this reference:
isalnum()
isalpha()
iscntrl()
isdigit()
isgraph()
islower()
isprint()
ispunct()
isspace()
isupper()
isxdigit()
Strictly speaking, these functions should be coded to be aware of locale-specific issues. You may want to take example simulations provided here and modify them to your own needs to support that. These are just basic working examples.
Prev | Home | Next |
Character set | Up | Character value |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |