Permalink
Browse files

upgrade

  • Loading branch information...
mukunda- committed Nov 25, 2014
1 parent a01833e commit 23a4dc3e0a02c8554f42e1a6acaf9a8a6d562f9f
Showing with 9 additions and 2 deletions.
  1. +1 −2 README.md
  2. +8 −0 lib/steamid.hpp
View
@@ -36,8 +36,7 @@ C++ usage example:
...
// parse a Steam ID in "SteamID3" format.
SteamID steamid = SteamID::Parse(
"[U:1:108998443]", SteamID::Formats::STEAMID3 );
SteamID steamid( "[U:1:108998443]", SteamID::Formats::STEAMID3 );
// print it in SteamID32 format
std::cout << steamid[ SteamID::Formats::STEAMID32 ];
View
@@ -310,6 +310,14 @@ class SteamID {
bigint To64() {
return m_value + STEAMID64_BASE;
}
/** -----------------------------------------------------------------------
* Parsing shortcut.
*/
SteamID( const std::string &input, Formats format = Formats::AUTO,
int detect_raw = ParseRawDefault() )
: SteamID( Parse( input, format, detect_raw )) {
}
/** -----------------------------------------------------------------------
* Construct a Steam ID.

0 comments on commit 23a4dc3

Please sign in to comment.