citrus_ues.c (219019) | citrus_ues.c (252583) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/UES/citrus_ues.c 219019 2011-02-25 00:04:39Z gabor $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/UES/citrus_ues.c 252583 2013-07-03 18:27:45Z peter $ */ |
2/* $NetBSD: citrus_ues.c,v 1.1 2006/11/13 15:16:31 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2006 Citrus Project, 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 168 unchanged lines hidden (view full) --- 178{ 179 180 return ((uint32_t)wc <= 0x9F && wc != 0x24 && wc != 0x40 && 181 wc != 0x60); 182} 183 184static int 185_citrus_UES_mbrtowc_priv(_UESEncodingInfo * __restrict ei, | 2/* $NetBSD: citrus_ues.c,v 1.1 2006/11/13 15:16:31 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2006 Citrus Project, 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 168 unchanged lines hidden (view full) --- 178{ 179 180 return ((uint32_t)wc <= 0x9F && wc != 0x24 && wc != 0x40 && 181 wc != 0x60); 182} 183 184static int 185_citrus_UES_mbrtowc_priv(_UESEncodingInfo * __restrict ei, |
186 wchar_t * __restrict pwc, char ** __restrict s, size_t n, | 186 wchar_t * __restrict pwc, const char ** __restrict s, size_t n, |
187 _UESState * __restrict psenc, size_t * __restrict nresult) 188{ | 187 _UESState * __restrict psenc, size_t * __restrict nresult) 188{ |
189 char *s0; | 189 const char *s0; |
190 int ch, head, num, tail; 191 wchar_t hi, wc; 192 193 if (*s == NULL) { 194 _citrus_UES_init_state(ei, psenc); 195 *nresult = 0; 196 return (0); 197 } --- 215 unchanged lines hidden --- | 190 int ch, head, num, tail; 191 wchar_t hi, wc; 192 193 if (*s == NULL) { 194 _citrus_UES_init_state(ei, psenc); 195 *nresult = 0; 196 return (0); 197 } --- 215 unchanged lines hidden --- |