Blame src/idna.h

Packit Service e08953
/* Copyright (c) 2011, 2018 Ben Noordhuis <info@bnoordhuis.nl>
Packit Service e08953
 *
Packit Service e08953
 * Permission to use, copy, modify, and/or distribute this software for any
Packit Service e08953
 * purpose with or without fee is hereby granted, provided that the above
Packit Service e08953
 * copyright notice and this permission notice appear in all copies.
Packit Service e08953
 *
Packit Service e08953
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
Packit Service e08953
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
Packit Service e08953
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
Packit Service e08953
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
Packit Service e08953
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
Packit Service e08953
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
Packit Service e08953
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Packit Service e08953
 */
Packit Service e08953
Packit Service e08953
#ifndef UV_SRC_IDNA_H_
Packit Service e08953
#define UV_SRC_IDNA_H_
Packit Service e08953
Packit Service e08953
/* Decode a single codepoint. Returns the codepoint or UINT32_MAX on error.
Packit Service e08953
 * |p| is updated on success _and_ error, i.e., bad multi-byte sequences are
Packit Service e08953
 * skipped in their entirety, not just the first bad byte.
Packit Service e08953
 */
Packit Service e08953
unsigned uv__utf8_decode1(const char** p, const char* pe);
Packit Service e08953
Packit Service e08953
/* Convert a UTF-8 domain name to IDNA 2008 / Punycode. A return value >= 0
Packit Service e08953
 * is the number of bytes written to |d|, including the trailing nul byte.
Packit Service e08953
 * A return value < 0 is a libuv error code. |s| and |d| can not overlap.
Packit Service e08953
 */
Packit Service e08953
long uv__idna_toascii(const char* s, const char* se, char* d, char* de);
Packit Service e08953
Packit Service e08953
#endif  /* UV_SRC_IDNA_H_ */