void CTable::parse_line(const std::_tstring & table) { for(std::size_t i = 0; i < table.size(); ++i) { std::_tstring tchar; tchar.resize(1, table[i]); m_rows.push_back(CLine(tchar)); } }
bool IsValidIdentifier(const std::_tstring & label) { if (label.size() == 0) return false; for (std::_tstring::size_type i = 0; i < label.size(); ++i) { switch (label.at(i)) { case '<': case '>': case ':': case '\"': case '/': case '\\': case '|': case '?': case '*': case '.': return false; } } return true; }
void CTable::parse_rows(const std::_tstring & table) { std::_tstring line; for(std::size_t i = 0; i < table.size(); ++i) { line += table[i]; if (table[i] == _T('\n')) { m_rows.push_back(CLine(line)); line = _T(""); } } if (line.size()) m_rows.push_back(CLine(line)); }