| 1063 | |
| 1064 | |
| 1065 | enum CsvTable::CellContentType CsvTable::guessContentType(std::string content) { |
| 1066 | enum CellContentType type = CellContentType::CELL_ANY; |
| 1067 | if( Helper::isInteger(content) ) { |
| 1068 | type = CellContentType::CELL_INTEGER; |
| 1069 | } else if( Helper::isFloat(content, '.') ) { |
| 1070 | type = CellContentType::CELL_FLOAT_POINT; |
| 1071 | } else if( Helper::isFloat(content, ',') ) { |
| 1072 | type = CellContentType::CELL_FLOAT_COMMA; |
| 1073 | } else if( Helper::isSomeDate(content) ) { |
| 1074 | type = CellContentType::CELL_DATE; |
| 1075 | } else if( Helper::isEmailAddress(content) ) { |
| 1076 | type = CellContentType::CELL_EMAIL; |
| 1077 | } else if( Helper::isNumber(content) ) { |
| 1078 | type = CellContentType::CELL_NUMBER; |
| 1079 | } |
| 1080 | return type; |
| 1081 | } |
| 1082 | |
| 1083 | |
| 1084 |
nothing calls this directly
no outgoing calls
no test coverage detected