summaryrefslogtreecommitdiff
path: root/indra/newview/llautoreplace.h
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-01-25 19:53:12 +0000
committerCho <cho@lindenlab.com>2013-01-25 19:53:12 +0000
commit163f3de73d93be8f5e482be03a1952244cadee68 (patch)
treeb57b2a7946f45e5365483d45d67649d44741b81b /indra/newview/llautoreplace.h
parentd67804543d4042c1196c05db5303b76089d4ade2 (diff)
CHUI-291 FIX New auto-replace feature does not work with chui text input boxes in conversation floater
Modified LLAutoReplace to pass back a string for replacement instead of modifying the input string
Diffstat (limited to 'indra/newview/llautoreplace.h')
-rw-r--r--indra/newview/llautoreplace.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llautoreplace.h b/indra/newview/llautoreplace.h
index bbb86294bc..9eecc2d981 100644
--- a/indra/newview/llautoreplace.h
+++ b/indra/newview/llautoreplace.h
@@ -183,7 +183,8 @@ class LLAutoReplaceSettings
* When the end of a word is detected (defined as any punctuation character,
* or any whitespace except newline or return), the preceding word is used
* as a lookup key in an ordered list of maps. If a match is found in any
- * map, the keyword is replaced by the associated value from the map.
+ * map, the replacement start index and length are returned along with the
+ * new replacement string.
*
* See the autoreplaceCallback method for how to add autoreplace functionality
* to a text entry tool.
@@ -192,7 +193,7 @@ class LLAutoReplace : public LLSingleton<LLAutoReplace>
{
public:
/// Callback that provides the hook for use in text entry methods
- void autoreplaceCallback(LLWString& inputText, S32& cursorPos);
+ void autoreplaceCallback(S32& replacement_start, S32& replacement_length, LLWString& replacement_string, S32& cursor_pos, const LLWString& input_text);
/// Get a copy of the current settings
LLAutoReplaceSettings getSettings();