mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
New tool
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13525 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b34b39cf6b
commit
6473edaac7
15 changed files with 1934 additions and 2 deletions
72
Tools/make_strings/StringsEntry.h
Normal file
72
Tools/make_strings/StringsEntry.h
Normal file
|
@ -0,0 +1,72 @@
|
|||
/* StringsEntry
|
||||
|
||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Alexander Malmberg <alexander@malmberg.org>
|
||||
Created: 2002
|
||||
|
||||
This file is part of the GNUstep Project
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
You should have received a copy of the GNU General Public
|
||||
License along with this program; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation,
|
||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef StringsEntry_h
|
||||
#define StringsEntry_h
|
||||
|
||||
@class SourceEntry;
|
||||
|
||||
@interface StringsEntry : NSObject
|
||||
{
|
||||
NSString *key,*comment,*translated;
|
||||
NSString *user_comment;
|
||||
|
||||
#define FLAG_UNTRANSLATED 0x01
|
||||
#define FLAG_UNMATCHED 0x02
|
||||
int flags;
|
||||
|
||||
NSString *file;
|
||||
unsigned int line;
|
||||
}
|
||||
|
||||
+ stringsEntryFromSourceEntry: (SourceEntry *)se;
|
||||
|
||||
- initWithKey: (NSString *)k comment: (NSString *)c translated: (NSString *)t userComment: (NSString *)uc
|
||||
flags: (int)flags file: (NSString *)filename line: (int)line;
|
||||
|
||||
-(NSString *) key;
|
||||
-(NSString *) comment;
|
||||
-(NSString *) translated;
|
||||
-(NSString *) userComment;
|
||||
|
||||
-(int) flags;
|
||||
|
||||
-(NSString *) file;
|
||||
-(unsigned int) line;
|
||||
|
||||
-(int) compareFileLine: (StringsEntry *)e;
|
||||
-(int) compareFileKeyComment: (StringsEntry *)e;
|
||||
|
||||
|
||||
-(void) setKey: (NSString *)k;
|
||||
-(void) setComment: (NSString *)c;
|
||||
-(void) setTranslated: (NSString *)t;
|
||||
-(void) setUserComment: (NSString *)uc;
|
||||
|
||||
-(void) setFlags: (int)f;
|
||||
-(void) addFlag: (int)f;
|
||||
|
||||
-(void) setFile: (NSString *)f;
|
||||
-(void) setLine: (unsigned int)l;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue