summaryrefslogtreecommitdiff
path: root/indra/llui/lltextutil.h
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2014-10-02 18:20:10 +0300
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2014-10-02 18:20:10 +0300
commita25748e11ea59d72f8190373be5b8930288d4744 (patch)
treeddfebd4b4a738c7b636427b9ba469929b81627a5 /indra/llui/lltextutil.h
parentd95feec8dc38dad52f5265a9abc58175019c6d18 (diff)
MAINT-4119 FIXED Uniquely decorate links on Second Life or Linden Lab domains
Diffstat (limited to 'indra/llui/lltextutil.h')
-rwxr-xr-xindra/llui/lltextutil.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/indra/llui/lltextutil.h b/indra/llui/lltextutil.h
index 798f14d086..176b4ba071 100755
--- a/indra/llui/lltextutil.h
+++ b/indra/llui/lltextutil.h
@@ -64,7 +64,34 @@ namespace LLTextUtil
*/
const std::string& formatPhoneNumber(const std::string& phone_str);
- bool processUrlMatch(LLUrlMatch* match,LLTextBase* text_base, bool is_content_trusted);
+ /**
+ * Adds icon before url if need.
+ *
+ * @param[in] match an object with results of matching
+ * @param[in] text_base pointer to UI text object
+ * @param[in] is_content_trusted true if context is trusted
+ * @return reference to string with formatted phone number
+ */
+ bool processUrlMatch(LLUrlMatch* match, LLTextBase* text_base, bool is_content_trusted);
+
+ typedef struct
+ {
+ std::string scheme;
+ std::string host;
+ std::string port;
+ std::string path;
+ std::string query;
+ std::string fragment;
+ } Uri;
+
+ /**
+ * Translates uri's host name and scheme to lowercase
+ *
+ * @param[in, out] uri_string string with original uri
+ * @param[out] uri receives parts of uri
+ * @return 0 on success, error code otherwise
+ */
+ S32 normalizeUri(std::string& uri_string, Uri * uri = NULL);
class TextHelpers
{