Beispiel #1
0
		private void DoRestoreEndian(NSMutableString str )
		{
			NSRange range = new NSRange(0, (int) str.length());
			NSString target = NSString.Create("\n");
			
			if (m_endian == LineEndian.Windows)
			{
				NSString replacement = NSString.Create("\r\n");
				str.replaceOccurrencesOfString_withString_options_range(target, replacement, Enums.NSLiteralSearch, range);
			}
			else if (m_endian == LineEndian.Mac)
			{
				NSString replacement = NSString.Create("\r");
				str.replaceOccurrencesOfString_withString_options_range(target, replacement, Enums.NSLiteralSearch, range);
			}
		}