summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib/wind/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/heimdal/lib/wind/utf8.c')
-rw-r--r--source4/heimdal/lib/wind/utf8.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/source4/heimdal/lib/wind/utf8.c b/source4/heimdal/lib/wind/utf8.c
index e9e63421f3..f563b79107 100644
--- a/source4/heimdal/lib/wind/utf8.c
+++ b/source4/heimdal/lib/wind/utf8.c
@@ -1,34 +1,34 @@
/*
- * Copyright (c) 2004, 2006, 2007, 2008 Kungliga Tekniska Högskolan
- * (Royal Institute of Technology, Stockholm, Sweden).
- * All rights reserved.
+ * Copyright (c) 2004, 2006, 2007, 2008 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
+ * All rights reserved.
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
*
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * 3. Neither the name of the Institute nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
+ * 3. Neither the name of the Institute nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
*
- * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
@@ -110,7 +110,7 @@ utf8toutf32(const unsigned char **pp, uint32_t *out)
* @param out_len before processing out_len should be the length of
* the out variable, after processing it will be the length of the out
* string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -146,7 +146,7 @@ wind_utf8ucs4(const char *in, uint32_t *out, size_t *out_len)
*
* @param in an UTF-8 string to convert.
* @param out_len the length of the resulting UCS4 string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -157,7 +157,7 @@ wind_utf8ucs4_length(const char *in, size_t *out_len)
return wind_utf8ucs4(in, NULL, out_len);
}
-static const char first_char[4] =
+static const char first_char[4] =
{ 0x00, 0xC0, 0xE0, 0xF0 };
/**
@@ -174,7 +174,7 @@ static const char first_char[4] =
* @param out_len before processing out_len should be the length of
* the out variable, after processing it will be the length of the out
* string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -236,7 +236,7 @@ wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len)
* @param in an UCS4 string to convert.
* @param in_len the length of UCS4 string to convert.
* @param out_len the length of the resulting UTF-8 string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -255,7 +255,7 @@ wind_ucs4utf8_length(const uint32_t *in, size_t in_len, size_t *out_len)
* @param flags Flags to control the behavior of the function.
* @param out the output UCS2, the array must be at least out/2 long.
* @param out_len the output length
- *
+ *
* @return returns 0 on success, an wind error code otherwise.
* @ingroup wind
*/
@@ -277,7 +277,7 @@ wind_ucs2read(const void *ptr, size_t len, unsigned int *flags,
/** if len is odd, WIND_ERR_LENGTH_NOT_MOD2 is returned */
if (len & 1)
return WIND_ERR_LENGTH_NOT_MOD2;
-
+
/**
* If the flags WIND_RW_BOM is set, check for BOM. If not BOM is
* found, check is LE/BE flag is already and use that otherwise
@@ -320,7 +320,7 @@ wind_ucs2read(const void *ptr, size_t len, unsigned int *flags,
* @param ptr The input buffer to write to, the array must be at least
* (in + 1) * 2 bytes long.
* @param out_len the output length
- *
+ *
* @return returns 0 on success, an wind error code otherwise.
* @ingroup wind
*/
@@ -391,7 +391,7 @@ wind_ucs2write(const uint16_t *in, size_t in_len, unsigned int *flags,
* @param out_len before processing out_len should be the length of
* the out variable, after processing it will be the length of the out
* string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -430,7 +430,7 @@ wind_utf8ucs2(const char *in, uint16_t *out, size_t *out_len)
*
* @param in an UTF-8 string to convert.
* @param out_len the length of the resulting UCS4 string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -453,7 +453,7 @@ wind_utf8ucs2_length(const char *in, size_t *out_len)
* @param out_len before processing out_len should be the length of
* the out variable, after processing it will be the length of the out
* string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/
@@ -508,7 +508,7 @@ wind_ucs2utf8(const uint16_t *in, size_t in_len, char *out, size_t *out_len)
* @param in an UCS2 string to convert.
* @param in_len an UCS2 string length to convert.
* @param out_len the length of the resulting UTF-8 string.
- *
+ *
* @return returns 0 on success, an wind error code otherwise
* @ingroup wind
*/