@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2022 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -16,11 +16,10 @@ #include "config.h" #include #include #include -#include #import "OFMutableUTF8String.h" #import "OFASPrintF.h" #import "OFString.h" #import "OFUTF8String.h" @@ -77,11 +76,11 @@ if (!_s->isUTF8) { uint8_t t; const OFUnichar *const *table; - assert(startTableSize >= 1 && middleTableSize >= 1); + OFAssert(startTableSize >= 1 && middleTableSize >= 1); _s->hasHash = false; for (i = 0; i < _s->cStringLength; i++) { if (isStart) @@ -171,11 +170,11 @@ @throw [OFInvalidEncodingException exception]; } j += d; } - assert(j == newCStringLength); + OFAssert(j == newCStringLength); newCString[j] = 0; OFFreeMemory(unicodeString); OFFreeMemory(_s->cString); _s->hasHash = false;