spiegel-keyman/mac/KeymanEngine4Mac/KeymanEngine4Mac/KME/KMCompGroup.m
2017-08-10 13:11:52 +07:00

33 lines
760 B
Objective-C

//
// KMCompGroup.m
// KeymanEngine4Mac
//
// Created by Serkan Kurt on 28/11/2014.
// Copyright (c) 2017 SIL International. All rights reserved.
//
#import "KMCompGroup.h"
#import "NSString+XString.h"
@implementation KMCompGroup
- (id)init {
self = [super init];
if (self) {
_name = @"";
_keys = [[NSMutableArray alloc] initWithCapacity:0];
_match = @"";
_noMatch = @"";
}
return self;
}
- (NSString *)description {
NSString *format = @"<%@:%p, Name:%@ Match:%@ NoMatch:%@ fUsingKeys:%d Keys:%@>";
NSString *str = [NSString stringWithFormat:format,
[self className], self, _name, [_match codeString], [_noMatch codeString], _fUsingKeys, _keys];
return str;
}
@end