Prevent empty strings from appearing in formatted result.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-01-23 05:40:38 +00:00
parent ccdcd69734
commit e66d2777ca
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-01-23 00:41 Gregory John Casamento <greg_casamento@yahoo.com>
* GormFunctions.m: identifierString() added code which tests
the result to see if it's zero length. If it is, it's
replaced with "dummyIdentifier".
2005-01-22 15:38 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassEditor.m: Replaced use of the class methods

View file

@ -318,6 +318,12 @@ NSString *identifierString(NSString *str)
r = [result rangeOfCharacterFromSet: white];
}
// check the result's length.
if([result length] == 0)
{
result = [NSString stringWithString: @"dummyIdentifier"];
}
return result;
}