Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/FormEngine/src/com/temp/shared/utils/CharacterUtils.java

Diff revisions: vs.
  @@ -7,40 +7,35 @@
7 7
8 8 private static final String UNACCEPTABLE_NON_CONTROL_FILENAME_CHARACTERS = "|\\?*<\":>+[]/";
9 9
10 - public static boolean isUnacceptableNonControlFilenameChar(char c) {
11 - return (UNACCEPTABLE_NON_CONTROL_FILENAME_CHARACTERS.indexOf(c) != -1);
10 + public static boolean isUnacceptableNonControlFilenameChar( char c ) {
11 + return (UNACCEPTABLE_NON_CONTROL_FILENAME_CHARACTERS.indexOf( c ) != -1);
12 12 }
13 13
14 - public static boolean isControlChar(char c) {
14 + public static boolean isControlChar( char c ) {
15 15 return (c < ' ') || ((DEL <= c) && (c < HIBIT_SPACE));
16 16 }
17 17
18 - public static boolean isDisplayable7BitAsciiAllowingSpaceAndNewline(char c) {
18 + public static boolean isDisplayable7BitAsciiAllowingSpaceAndNewline( char c ) {
19 19 return (c == NEWLINE) || ((' ' <= c) && (c <= DEL));
20 20 }
21 21
22 - public static boolean isAlphaNumericUnderScore7BitAscii( char c )
23 - {
22 + public static boolean isAlphaNumericUnderScore7BitAscii( char c ) {
24 23 return isNumeric( c ) || is7BitAlphaUnderScore( c );
25 24 }
26 25
27 - public static boolean is7BitAlphaUnderScore( char c )
28 - {
26 + public static boolean is7BitAlphaUnderScore( char c ) {
29 27 return (c == '_') || is7BitAlpha( c );
30 28 }
31 29
32 - public static boolean is7BitAlphaNumeric( char c )
33 - {
30 + public static boolean is7BitAlphaNumeric( char c ) {
34 31 return isNumeric( c ) || is7BitAlpha( c );
35 32 }
36 33
37 - public static boolean is7BitAlpha( char c )
38 - {
34 + public static boolean is7BitAlpha( char c ) {
39 35 return ((('A' <= c) && (c <= 'Z')) || (('a' <= c) && (c <= 'z')));
40 36 }
41 37
42 - public static boolean isNumeric( char c )
43 - {
38 + public static boolean isNumeric( char c ) {
44 39 return (('0' <= c) && (c <= '9'));
45 40 }
46 41 }