Added support for error messages & fixed bugs:

- parserClassForXMLData: did return instance instead of class
- DateParser: array index typo
This commit is contained in:
relikd
2018-12-10 17:59:01 +01:00
parent dd9ec4b63d
commit 10d37ec3f4
6 changed files with 73 additions and 16 deletions

View File

@@ -108,7 +108,7 @@ static NSInteger nextMonthValue(const char *bytes, NSUInteger numberOfBytes, NSU
return NSNotFound;
if (monthCharacters[0] == 'J' || monthCharacters[0] == 'j') { //Jan, Jun, Jul
if (monthCharacters[1] == 'a' || monthCharacters[i] == 'A')
if (monthCharacters[1] == 'a' || monthCharacters[1] == 'A')
return RSJanuary;
if (monthCharacters[1] == 'u' || monthCharacters[1] == 'U') {
if (monthCharacters[2] == 'n' || monthCharacters[2] == 'N')