Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 1667ae5

Browse files
author
张国晔
committed
Hebrew Support
1 parent 3ba3b2e commit 1667ae5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tweak.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ - (NSInteger)tableView:(id)view numberOfRowsInSection:(NSInteger)section {
3232
case 'T':
3333
size *= 1024 * 1024 * 1024;
3434
}
35+
if (length > 3) {
36+
switch ([sizeString characterAtIndex:length - 3]) {
37+
case L'מ':
38+
size *= 1024;
39+
break;
40+
case L'ג':
41+
size *= 1024 * 1024;
42+
}
43+
}
3544
[data addObject:[[Entry alloc] initWithIndex:i data:@(size)]];
3645
}
3746
map = [data sortedArrayUsingComparator:^NSComparisonResult(Entry *a, Entry *b) {

0 commit comments

Comments
 (0)