aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llurlsimstring.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llurlsimstring.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llurlsimstring.h')
-rw-r--r--linden/indra/newview/llurlsimstring.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/linden/indra/newview/llurlsimstring.h b/linden/indra/newview/llurlsimstring.h
index 420030f..a1c3bfc 100644
--- a/linden/indra/newview/llurlsimstring.h
+++ b/linden/indra/newview/llurlsimstring.h
@@ -39,7 +39,7 @@ class LLURLSimString
39public: 39public:
40 enum { NOT_SET=0, NOT_PARSED=1, PARSE_OK=2, PARSE_FAIL=-1 }; 40 enum { NOT_SET=0, NOT_PARSED=1, PARSE_OK=2, PARSE_FAIL=-1 };
41 41
42 static void setString(const LLString& url); 42 static void setString(const std::string& url);
43 // Accepts all sorts of fragments: 43 // Accepts all sorts of fragments:
44 // secondlife://RegionName/1/2/ 44 // secondlife://RegionName/1/2/
45 // sl://RegionName/1/2/3/ 45 // sl://RegionName/1/2/3/
@@ -51,7 +51,7 @@ public:
51 // (and it parsed correctly, which is basically always because 51 // (and it parsed correctly, which is basically always because
52 // any bare region string is a valid fragment). 52 // any bare region string is a valid fragment).
53 53
54 static bool parse(const LLString& sim_string, std::string *region_name, S32 *x, S32 *y, S32 *z); 54 static bool parse(const std::string& sim_string, std::string *region_name, S32 *x, S32 *y, S32 *z);
55 // Parse a sim string "Ahern/1/2" and return location data, 55 // Parse a sim string "Ahern/1/2" and return location data,
56 // doesn't affect static instance. 56 // doesn't affect static instance.
57 57
@@ -64,16 +64,18 @@ public:
64 LLURLSimString() : mX(128), mY(128), mZ(0), mParseState(NOT_PARSED) {} 64 LLURLSimString() : mX(128), mY(128), mZ(0), mParseState(NOT_PARSED) {}
65 65
66private: 66private:
67 static S32 parseGridIdx(const LLString& in_string, S32 idx0, S32* res); 67 static std::string::size_type parseGridIdx(const std::string& in_string,
68 std::string::size_type idx0,
69 std::string::size_type* res);
68 70
69public: 71public:
70 static LLURLSimString sInstance; 72 static LLURLSimString sInstance;
71 static LLString sLocationStringHome; 73 static std::string sLocationStringHome;
72 static LLString sLocationStringLast; 74 static std::string sLocationStringLast;
73 75
74public: 76public:
75 LLString mSimString; // "name/x/y/z" 77 std::string mSimString; // "name/x/y/z"
76 LLString mSimName; 78 std::string mSimName;
77 S32 mX,mY,mZ; 79 S32 mX,mY,mZ;
78 S32 mParseState; 80 S32 mParseState;
79}; 81};