mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-16 13:49:23 +00:00
33 lines
760 B
Objective-C
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
|