summaryrefslogtreecommitdiff
path: root/indra/newview/llslurl.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llslurl.h')
-rw-r--r--indra/newview/llslurl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llslurl.h b/indra/newview/llslurl.h
index 5c9fea3e96..8af2bdfb83 100644
--- a/indra/newview/llslurl.h
+++ b/indra/newview/llslurl.h
@@ -79,12 +79,25 @@ public:
static std::string buildUnescapedSLURL(const std::string& regionname, S32 x, S32 y, S32 z);
/**
+ * builds SLURL from global position. Returns escaped or unescaped url.
+ * Returns escaped url by default.
+ */
+ static std::string buildSLURLfromPosGlobal(const std::string& regionname,
+ const LLVector3d& global_pos,
+ bool escaped = true);
+ /**
* Strip protocol part from the URL.
*/
static std::string stripProtocol(const std::string& url);
+ /**
+ * Convert global position to X, Y Z
+ */
+ static void globalPosToXYZ(const LLVector3d& pos, S32& x, S32& y, S32& z);
+
private:
static bool matchPrefix(const std::string& url, const std::string& prefix);
+
};
#endif