]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Aug 2021 15:21:23 +0000 (16:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Aug 2021 15:21:23 +0000 (16:21 +0100)
contrib/replxx/src/conversion.hxx
contrib/replxx/src/unicodestring.hxx

index 6587ad0e2f1a19adc1232f402537ee55a60fb31e..05ea64fd26ec3f35baf51381ec3cc4b0c3c3c0c3 100644 (file)
@@ -1,14 +1,19 @@
 #ifndef REPLXX_CONVERSION_HXX_INCLUDED
 #define REPLXX_CONVERSION_HXX_INCLUDED 1
 
-#include "ConvertUTF.h"
-
 #ifdef __has_include
 #if __has_include( <version> )
 #include <version>
 #endif
 #endif
 
+typedef enum {
+       conversionOK,    /* conversion successful */
+       sourceExhausted, /* partial character in source, but hit end */
+       targetExhausted, /* insuff. room in target for conversion */
+       sourceIllegal    /* source sequence is illegal/malformed */
+} ConversionResult;
+
 #if ! ( defined( __cpp_lib_char8_t ) || ( defined( __clang_major__ ) && ( __clang_major__ >= 8 ) && ( __cplusplus > 201703L ) ) )
 namespace replxx {
 typedef unsigned char char8_t;
index 22f3e46956dde3ee5c3b4199e20f013f1ed02833..8ff98a7299caf8081ba0afbe61bbe6e3dda83453 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <vector>
 #include <cstring>
+#include <string>
 
 #include "conversion.hxx"