physfs.h
changeset 872 65d122daaebb
parent 865 616d4f93a5e9
child 876 0d8e41a5c831
equal deleted inserted replaced
871:7d9a26213980 872:65d122daaebb
  2157  * Latin1 strings are 8-bits per character: a popular "high ASCII"
  2157  * Latin1 strings are 8-bits per character: a popular "high ASCII"
  2158  *  encoding.
  2158  *  encoding.
  2159  *
  2159  *
  2160  * To ensure that the destination buffer is large enough for the conversion,
  2160  * To ensure that the destination buffer is large enough for the conversion,
  2161  *  please allocate a buffer that is double the size of the source buffer.
  2161  *  please allocate a buffer that is double the size of the source buffer.
  2162  *  UTF-8 expands latin1 codepoints over 127 from to 2 bytes, so the string
  2162  *  UTF-8 expands latin1 codepoints over 127 from 1 to 2 bytes, so the string
  2163  *  may grow in some cases.
  2163  *  may grow in some cases.
  2164  *
  2164  *
  2165  * Strings that don't fit in the destination buffer will be truncated, but
  2165  * Strings that don't fit in the destination buffer will be truncated, but
  2166  *  will always be null-terminated and never have an incomplete UTF-8
  2166  *  will always be null-terminated and never have an incomplete UTF-8
  2167  *  sequence at the end.
  2167  *  sequence at the end.