equal
deleted
inserted
replaced
69 #define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" ) |
69 #define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" ) |
70 |
70 |
71 #define FmMaxLengthofDriveName 11 |
71 #define FmMaxLengthofDriveName 11 |
72 #define FmMaxLengthofDrivePassword 8 |
72 #define FmMaxLengthofDrivePassword 8 |
73 |
73 |
|
74 |
|
75 // used to match un-empty string, and is not totally empty characters. |
|
76 #define Regex_ValidUnEmpty QString( "^.*[^\\s].*$" ) |
|
77 |
|
78 // this is regexp for vaild file/folder name: no \/:*?"<>| and is not totally empty characters. |
|
79 // file name can not end with "." , but it is not include in this RegExp. It should be checked in Regex_ValidNotEndWithDot |
|
80 // this expression is composed by two expressions: |
|
81 // ^.*[^\\s].*$ used to match un-empty string and is not totally empty characters. |
|
82 // [^\\\\/:*?\"<>|] used to math valid file/folder name |
|
83 // merge the two regex together: |
|
84 // vaild file/folder name and is not totally empty. |
|
85 #define Regex_ValidFileFolderName QString( "^[^\\\\/:*?\"<>|]*[^\\\\/:*?\"<>|\\s][^\\\\/:*?\"<>|]*$" ) |
|
86 |
|
87 // is not end with dot( trim blank characters in the end first ) |
|
88 #define Regex_ValidNotEndWithDot QString( "^.*[^\\.\\s][\\s]*$" ) |
|
89 |
74 #endif |
90 #endif |