[model] Kiran, B3
[binary_type] PDA
[customer] OPEN
[issue#] P140916-01665
[problem] English is dispalyed multiple time under samsung keyboard settings.
[cause] scim_split_string_list return en if string includes blank
[solution] Remove blank in language list
[team] Input Framework
[request] N/A
[horizontal_expansion] N/A
Change-Id: Ieb0e784521c148ce999c1ba4e120c7b6b9813c64
return str;
}
+static String trim_blank (const String &str)
+{
+ String::size_type begin, len;
+
+ begin = str.find_first_not_of (" \t\n\v");
+
+ if (begin == String::npos)
+ return String ();
+
+ len = str.find_last_not_of (" \t\n\v") - begin + 1;
+
+ return str.substr (begin, len);
+}
+
EAPI String
scim_validate_locale (const String& locale)
{
break;
}
temp.assign (bg, ed);
+ temp = trim_blank (temp);
vec.push_back (temp);
++count;