• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best Way to Append Bytes With Encoding To CFMutableString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best Way to Append Bytes With Encoding To CFMutableString


  • Subject: Re: Best Way to Append Bytes With Encoding To CFMutableString
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 28 Mar 2012 14:58:04 +0100

On 28 Mar 2012, at 14:35, Andreas Grosam wrote:

> What's the preferred method to append a sequence of bytes in encoding 'encoding' (a CFStringEncoding) to a CFMutableString object?
>
> Well, the set of encodings which I'm interested in are the Unicode encoding schemes (UTF-8, UTF-16,  UTF-16LE, UTF-16BE, etc)
>
> Unfortunately, there is no CFStringAppendBytes() function where I could specify the encoding.
>
>
I presume that you considered CFStringAppendCString():

void CFStringAppendCString (
   CFMutableStringRef theString,
   const char *cStr,
   CFStringEncoding encoding
);

Regards

Jonathan Mitchell
Mugginsoft LLP



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Best Way to Append Bytes With Encoding To CFMutableString
      • From: Andreas Grosam <email@hidden>
References: 
 >Best Way to Append Bytes With Encoding To CFMutableString (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Best Way to Append Bytes With Encoding To CFMutableString
  • Next by Date: Re: PDFKit: panning the zoomed in PDF document
  • Previous by thread: Best Way to Append Bytes With Encoding To CFMutableString
  • Next by thread: Re: Best Way to Append Bytes With Encoding To CFMutableString
  • Index(es):
    • Date
    • Thread