OS4 DepotLogo by Nickman 
(anonymous IP: 3.14.142.115,0) 
 HomeRecentStatsSearchMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1004)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (923)
   o Video (69)

Total files: 4365

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


Support the site


 Readme for:  Library » Misc » utf8_library.lha

UTF8.Library

Description: Encode/Decode or manipulate UTF8 text strings.
Download: utf8_library.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 189kb
Version: 7.1
Date: 30 Jan 21
Author: Kjetil Hvalstrand
Submitter: Kjetil Hvalstrand
Homepage: http://lifeofliveforit.blogspot.no/search/label/UTF8
Requirements: AmigaOS4.1 , Dos.Library version 53 (or newer). library is not backwards compatible.
Category: library/misc
Replaces: library/misc/utf8_library.lha
License: Freeware
Distribute: yes
Min OS Version: 4.1
FileID: 11574
 
Comments: 7
Snapshots: 0
Videos: 0
Downloads:  (Current version)
 (Accumulated)

[Show comments] [Show snapshots] [Show videos] [Show content] [Show crashlogs] 
Short:	Encode/Decode or manipulate UTF8 text strings.
Author:	Kjetil Hvalstrand
Version:	7
Requires:	AmigaOS4.X

Description:

	UTF8.library is a new library for working whit UTF8 strings. 
	It was created because there was a need for a safe and easy to use library

Content:

	*	UTF8.Library
	*	SDK header files for C and C++
	*	Autodocs.
	* 	Tests / examples.

Requirements:

	DOS.Library version 53 (newer version might work, depends on DOS.library).
	If you don't have correct DOS.library version UTF8.library can't open.

Known issues:

	UTF8->UTF8Printf() is not included in the C++ class yet.
	
License:

	LGPL, use the library in your projects, you can contribute to it.
	changes should be committed to repo.

	https://github.com/khval/utf8_library

Distribution:

	You can distribute or bundle this library whit your software, but please
include the README.

Warning: 

	some unknown bugs might exist.

	Reports bugs to:
	https://github.com/khval/utf8_library/issues


Alternatives:

*	According to Trixie iconv is not straightforward to use. 

*	According to Joerg Storohmayer there is nothing in Codesets.library, 
	AmigaOS does not already support.

Changes:

29.01.2021 -- version 7

	* A lot function renamed
	* Removed lot of function pointers in the code (slow)
	* Moved dos,graphics,etc moved out libbase (no indirects, no mess), 
		now code works with -D__USE_INLINE__
	* Optimized UTF8GetGlyph(...) and UTF8EstimateByteSize(...)

14.02.2016 -- version 6

	Added: TextUTF8(), TextUTF8N(), TextUTF8Extent(), TextUTF8ExtentN()
	Added: TextUTF8Length(), TextUTF8LengthN(), DecodeN()
	Changed all functions to use AllocVecTags().
	Fixed: some functions did not use mem_flags correct.
	Updated autodocs.

21.03.2013 -- version 5

	Added: ModLeft(), ModRight(), ModTrim(), ModInsert(), ModRemove(),
ModSubString()
	Added: CaseCmp(),Cmp(), FindGlyph(),Copy()
	Changed: Decode(),Encode() so Codeset_page is first for consistency.
	Changed: ToUpper(), ToLower() ModToUpper(), ModToLower() so utf8_alphabet is
first for consistency.
	Updated inline4/UTF8.h
	Updated C++/UTF8.h (Work in progress)
	More tests / examples.

17.03.2013 -- Version 4

	Added: Left(), Right(), Trim(), Insert(), Remove(), GetOffset(), 
	Added: Merge(), ModToLower(), ModToUpper()
	Changed: ToLower(), ToUpper() Now they copy the result, not replace the input,
and you need a memory flag.
	Updated inline4/UTF8.h
	Updated C++/UTF8.h (Work in progress)
	Updated Autodocs.
	More tests / examples.

15.03.2013 -- Version 3

	Added IndexOf(), Printf(), GetSize()
	Changed: SubString(), Decode(), Encode() now has memory flag argument.
	Updated Autodocs.
	More tests / examples.

10.03.2013 -- Version 2

	Added SubString(), ToUpper(), ToLower().
	Updated Autodocs.
	More tests / examples.

09.03.2013 -- Version 1.


Copyright (c) 2004-2024 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment