mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-02 06:06:59 -06:00
Core: LanguageInfo completely refactored
git-svn-id: svn://ultimatepp.org/upp/trunk@1810 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
acd590d240
commit
4e19e35baa
9 changed files with 956 additions and 1005 deletions
|
|
@ -2090,11 +2090,11 @@ DataSet DataTableColumn::GetRange(Value min, Value max)
|
|||
DataSet DataTableColumn::GetLike(WString mask)
|
||||
{
|
||||
Vector<int> done = row_index->GetIndex();
|
||||
One<LanguageInfo::WildcardCompare> wcc = GetLanguageInfo().GetWildcardCompare(mask);
|
||||
WildcardCompare wcc(mask);
|
||||
int *d = done.Begin();
|
||||
for(const int *s = done.Begin(), *e = done.End(); s < e; s++) {
|
||||
WString value = Get(*s);
|
||||
if(wcc->Matches(value))
|
||||
if(wcc.Matches(value))
|
||||
*d++ = *s;
|
||||
}
|
||||
done.SetCount(d - done.Begin());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue