cog/Plugins/HTTPSource
Christopher Snowhill f7dc6beda1 Plugin utilities: Moved encoding guesser to header
Moved the string encoding guesser/converter to the Plugin.h header, so
it may be accessible from any plugin. I may make it a global member of
something eventually, but a static inline for such a simple function
should be fine for now.

This function facilitates converting arbitrary 8 bit encoded strings to
Unicode NSString objects. It should be used anywhere that UTF-8 is
expected, but not necessarily guaranteed, and where other 8-bit
encodings may also be supplied by a user's files.

Not using this setup for string inputs has already led to failed UTF-8
decoding resulting in nil NSStrings being passed to the inline array or
dictionary initializers, which results in crashes due to uncaught
exceptions.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-05-24 01:05:43 -07:00
..
HTTPSource.xcodeproj HTTP Reader: Replaced implementation with libCURL 2022-02-09 13:41:01 -08:00
HTTPSource.h HTTP Reader: Replaced implementation with libCURL 2022-02-09 13:41:01 -08:00
HTTPSource.m Plugin utilities: Moved encoding guesser to header 2022-05-24 01:05:43 -07:00
HTTPSource_Prefix.pch Added source plugin support. Things are incredibly broken. Besides Ogg Vorbis. That should still work. 2007-03-02 01:36:52 +00:00
Info.plist Updated everything else to ARC, and plugged a release cycle. 2016-05-05 13:05:39 -07:00