Diff
Not logged in

Differences From Artifact [b69a96ffb1]:

To Artifact [30ac31a78d]:


256
257
258
259
260
261
262

263
264
265
266
267
268
269
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270







+







	w++;
    }
    Tcl_DStringSetLength(dsPtr, oldLength + (p - string));

    return string;
}

#undef Tcl_WCharToUtfDString
char *
Tcl_WCharToUtfDString(
    const unsigned short *uniStr,	/* Utf-16 string to convert to UTF-8. */
    int uniLength,		/* Length of Utf-16 string. */
    Tcl_DString *dsPtr)		/* UTF-8 representation of string is appended
				 * to this previously initialized DString. */
{
604
605
606
607
608
609
610

611
612
613
614
615
616
617
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619







+







    *w = '\0';
    Tcl_DStringSetLength(dsPtr,
	    oldLength + ((char *) w - (char *) wString));

    return wString;
}

#undef Tcl_UtfToWCharDString
unsigned short *
Tcl_UtfToWCharDString(
    const char *src,		/* UTF-8 string to convert to Unicode. */
    int length,			/* Length of UTF-8 string in bytes, or -1 for
				 * strlen(). */
    Tcl_DString *dsPtr)		/* Unicode representation of string is
				 * appended to this previously initialized