Functions | |
| std::string | EscapeSpecialCharacters (const std::string &s, bool escapeColon) |
| SgPropPointFmt | GetPointFmt (int gameNumber) |
| Return point format for a given game. | |
| std::string | PointToSgfString (SgMove p, int boardSize, SgPropPointFmt fmt, int fileFormat=4) |
| Convert point to SGF point string. | |
| SgPoint | SgfStringToPoint (const std::string &s, int boardSize, SgPropPointFmt fmt) |
| Convert SGF point string to point. | |
| string SgPropUtil::EscapeSpecialCharacters | ( | const std::string & | s, | |
| bool | escapeColon | |||
| ) |
Definition at line 82 of file SgProp.cpp.
Referenced by SgPropTextList::ToString(), SgPropText::ToString(), and SgPropUnknown::ToString().
| SgPropPointFmt SgPropUtil::GetPointFmt | ( | int | gameNumber | ) |
Return point format for a given game.
Returns SG_PROPPOINTFMT_GO for unknown game numbers.
Definition at line 30 of file SgProp.cpp.
Referenced by SgGameReader::HandleProperties(), and SgGameWriter::WriteGame().
| string SgPropUtil::PointToSgfString | ( | SgMove | p, | |
| int | boardSize, | |||
| SgPropPointFmt | fmt, | |||
| int | fileFormat = 4 | |||
| ) |
Convert point to SGF point string.
Definition at line 42 of file SgProp.cpp.
References SgPointUtil::Col(), SgPointUtil::Row(), SG_ASSERT, SG_MAX_SIZE, SG_MIN_SIZE, SG_NULLMOVE, SG_PASS, SG_PROPPOINTFMT_GO, and SG_PROPPOINTFMT_HEX.
Referenced by SgPropMove::ToString(), SgPropTextList::ToString(), and SgPropPointList::ToString().
| SgMove SgPropUtil::SgfStringToPoint | ( | const std::string & | s, | |
| int | boardSize, | |||
| SgPropPointFmt | fmt | |||
| ) |
Convert SGF point string to point.
Definition at line 98 of file SgProp.cpp.
References SgUtil::InRange(), SgPointUtil::Pt(), SG_ASSERT, SG_MAX_SIZE, SG_MIN_SIZE, SG_NULLMOVE, SG_PASS, SG_PROPPOINTFMT_GO, and SG_PROPPOINTFMT_HEX.
Referenced by SgPropMove::FromString(), SgPropTextList::FromString(), and SgPropPointList::FromString().