| 39 | enum literalsAllowed { litNone=0, litU=1, litB=2}; |
| 40 | |
| 41 | static bool IsPyStringTypeChar(int ch, literalsAllowed allowed) { |
| 42 | return |
| 43 | ((allowed & litB) && (ch == 'b' || ch == 'B')) || |
| 44 | ((allowed & litU) && (ch == 'u' || ch == 'U')); |
| 45 | } |
| 46 | |
| 47 | static bool IsPyStringStart(int ch, int chNext, int chNext2, literalsAllowed allowed) { |
| 48 | if (ch == '\'' || ch == '"') |
no outgoing calls
no test coverage detected