- Timestamp:
- 02/02/10 16:15:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Persistence Test/HeuristicLab.Persistence/3.3/Auxiliary/TypeNameParser.cs
r1795 r2735 31 31 Version := '\d+\.\d+\.\d+\.\d+)' 32 32 33 IDENTIFIER = [ a-zA-Z][a-ZA-Z0-9]*33 IDENTIFIER = [_a-zA-Z][_a-ZA-Z0-9]* 34 34 */ 35 35 … … 38 38 private static Dictionary<string, string> tokens = 39 39 new Dictionary<string, string> { 40 {"-", "DASH"}, 40 41 {"&", "AMPERSAND"}, 41 42 {".", "DOT"}, 42 {"-", "DASH"},43 43 {"+", "PLUS"}, 44 44 {",", "COMMA"}, … … 50 50 {"`", "BACKTICK"} }; 51 51 private static Regex NumberRegex = new Regex("^\\d+$"); 52 private static Regex TokenRegex = new Regex("[-&.+,\\[\\]* =`]|\\d+|[ a-zA-Z][a-zA-Z0-9]*");52 private static Regex TokenRegex = new Regex("[-&.+,\\[\\]* =`]|\\d+|[_a-zA-Z][_a-zA-Z0-9]*"); 53 53 public string Name { get; private set; } 54 54 public string Value { get; private set; }
Note: See TracChangeset
for help on using the changeset viewer.