File: README

package info (click to toggle)
ui-utilcpp 1.10.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,772 kB
  • sloc: cpp: 7,501; sh: 4,401; ansic: 278; makefile: 125
file content (79 lines) | stat: -rw-r--r-- 2,172 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
README for ui-utilcpp
=====================

Abstract
--------

A toolbox-like C++ library, with a diverse set of utilities:

* Exception: Generic Exception classes and THROW macros.
* Sys: C++ "exception" wrappers for a wide range of system C functions.
* Cap: Capabilities C++ wrapper.
* CharsetMagic: Charset guessing.
* Recoder: Charset recoding.
* Time: Misc date and time utilities.
* File: Misc file utilities.
* Text: Misc string utilities.
* http/: Minimal HTTP implementiation.
* PosixRegex: Simple wrapper for C 'regexec'.
* QuotaInfo: Wrapper to fs quota information.
* SMLog[Mono]: Syslog Macro Log.
* Socket: Simple Socket abstraction (inet+unix).
* Thread: Process based pseudo thread abstraction.
* CmdLine: Create CLI-like programs.
* GetOpt: Abstraction of GNU C getopt_long(3).

Copyright (c) 2001-2014 United Internet AG, under LGPLv3.


LFS support since 1.8.3
-----------------------

Since 1.8.3, ui-utilcpp is compiled with large file system
support. This is potentially harmful if you are mixing
ui-utilcpp (especially the wrappers in namespace Sys) C call
wrappers with your own C code.

To be on the safe side, also compile your project with LFS
support. For autotools, it's as simple as adding::

	AC_SYS_LARGEFILE

to your configure.ac. You should also check that your are
actually using 1.8.3 or better; with m4-macros from "ui-auto",
this looks like::

	UI_CHECK(ui_utilcpp, ui-utilcpp, 1, 8, 3, 9, 0, 0)

(You can craft your own check w/o ui-auto using the
'ui-utilcpp-version' script).


Upgrading from 1.0
------------------

-> Includes:

Old                         New

ToolboxSys                  Some of File, Thread, Time, Text.
ToolboxCPP                  Some of Text, Time, File.
ToolboxSTL                  Some of Text, Time, File, Misc.

-> Interface changes:

strtok: Separator must be changed from char ('.') to std::string
(",").

-> Exceptions:

All catch() blocks must be updated. In the simplest case, the old
exception handler can be replaced by

catch (UI::Util::Exception const & e)
{
	std::cerr << e.what() << std::endl; // or whatever
}

For diversed error handling, use the respective exception classes if
needed.