Skip to content

Commit

Permalink
moved some RawUtf8 functions to mormot.core.unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Jun 5, 2023
1 parent 095278f commit a6b47bb
Show file tree
Hide file tree
Showing 21 changed files with 2,755 additions and 2,749 deletions.
11 changes: 6 additions & 5 deletions src/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,20 @@ Efficient Unicode Conversion Classes shared by all framework units
- Text File Loading with BOM/Unicode Support
- Low-Level String Conversion Functions
- Text Case-(in)sensitive Conversion and Comparison
- UTF-8 String Manipulation Functions
- `TRawUtf8DynArray` Processing Functions
- Operating-System Independent Unicode Process

### mormot.core.text

Text Processing functions shared by all framework units
- UTF-8 String Manipulation Functions
- `TRawUtf8DynArray` Processing Functions
- CSV-like Iterations over Text Buffers
- `TBaseWriter` parent class for Text Generation
- `TTextWriter` parent class for Text Generation
- Numbers (integers or floats) and Variants to Text Conversion
- Hexadecimal Text And Binary Conversion
- Text Formatting functions and `ESynException` class
- Text Formatting functions
- Resource and Time Functions
- `ESynException` class
- Hexadecimal Text And Binary Conversion

### mormot.core.datetime

Expand Down
2,873 changes: 212 additions & 2,661 deletions src/core/mormot.core.text.pas

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/core/mormot.core.threads.pas
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ interface
{$endif PUREMORMOT2}
mormot.core.base,
mormot.core.os,
mormot.core.unicode,
mormot.core.text,
mormot.core.rtti,
mormot.core.buffers,
Expand Down
2,576 changes: 2,514 additions & 62 deletions src/core/mormot.core.unicode.pas

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/crypt/mormot.crypt.ecc256r1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ interface
mormot.core.base,
mormot.core.os,
mormot.core.rtti,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers, // for Base64 and baudot encoding
mormot.core.datetime,
Expand Down
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'2.1.5512'
'2.1.5513'
2 changes: 1 addition & 1 deletion src/net/mormot.net.acme.pas
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ interface
mormot.core.base,
mormot.core.os,
mormot.core.data,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers,
mormot.core.variants,
mormot.core.rtti,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.async.pas
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ interface
mormot.core.base,
mormot.core.os,
mormot.core.data,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers,
mormot.core.datetime,
mormot.core.threads,
Expand Down
6 changes: 3 additions & 3 deletions src/net/mormot.net.client.pas
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ interface
mormot.lib.curl,
{$endif USELIBCURL}
{$ifdef DOMAINRESTAUTH}
mormot.lib.sspi, // do-nothing units on non compliant system
mormot.lib.sspi, // do-nothing units on non compliant systems
mormot.lib.gssapi,
{$endif DOMAINRESTAUTH}
mormot.core.unicode, // for efficient UTF-8 text process within HTTP
mormot.core.buffers,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers,
mormot.core.data,
mormot.core.datetime,
mormot.core.rtti,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.dns.pas
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ interface
classes,
mormot.core.base,
mormot.core.os,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers,
mormot.net.sock;

Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.http.pas
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface
classes,
mormot.core.base,
mormot.core.os,
mormot.core.unicode, // for efficient UTF-8 text process within HTTP
mormot.core.unicode,
mormot.core.text,
mormot.core.rtti,
mormot.core.buffers,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.relay.pas
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ interface
mormot.core.base,
mormot.core.os,
mormot.core.data,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.datetime,
mormot.core.buffers,
mormot.core.threads,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.rtsphttp.pas
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ interface
mormot.core.os,
mormot.core.rtti,
mormot.core.data,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.datetime,
mormot.core.buffers,
mormot.core.threads,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.tunnel.pas
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ interface
mormot.core.base,
mormot.core.os,
mormot.core.data,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers,
mormot.core.json,
mormot.core.threads,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.ws.async.pas
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface
classes,
mormot.core.base,
mormot.core.os,
mormot.core.unicode, // for efficient UTF-8 text process within HTTP
mormot.core.unicode,
mormot.core.text,
mormot.core.data,
mormot.core.log,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.ws.client.pas
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface
classes,
mormot.core.base,
mormot.core.os,
mormot.core.unicode, // for efficient UTF-8 text process within HTTP
mormot.core.unicode,
mormot.core.text,
mormot.core.data,
mormot.core.log,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.ws.core.pas
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface
classes,
mormot.core.base,
mormot.core.os,
mormot.core.unicode, // for efficient UTF-8 text process within HTTP
mormot.core.unicode,
mormot.core.text,
mormot.core.data,
mormot.core.log,
Expand Down
2 changes: 1 addition & 1 deletion src/net/mormot.net.ws.server.pas
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface
classes,
mormot.core.base,
mormot.core.os,
mormot.core.unicode, // for efficient UTF-8 text process within HTTP
mormot.core.unicode,
mormot.core.text,
mormot.core.data,
mormot.core.log,
Expand Down
2 changes: 1 addition & 1 deletion src/tools/ecc/mormot.tools.ecc.pas
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ interface
sysutils,
mormot.core.base,
mormot.core.os,
mormot.core.text,
mormot.core.unicode,
mormot.core.text,
mormot.core.datetime,
mormot.core.variants,
mormot.core.rtti,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/mormot.ui.report.pas
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ procedure Register;
{$endif ISDELPHIXE3}
mormot.core.base,
mormot.core.os,
mormot.core.unicode,
mormot.core.text,
mormot.core.buffers,
mormot.core.unicode,
mormot.core.zip,
types,
clipbrd,
Expand Down
8 changes: 4 additions & 4 deletions test/test.core.base.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2432,16 +2432,16 @@ procedure TTestCoreBase.UrlEncoding;
Check(IsEqualGuid(Guid2, Guid));
Check(IsEqualGuid(@Guid2, @Guid));
Check(U.From('toto.com'));
Check(U.Uri = 'http://toto.com/');
CheckEqual(U.Uri, 'http://toto.com/');
Check(not U.Https);
Check(U.From('toto.com:123'));
Check(U.Uri = 'http://toto.com:123/');
CheckEqual(U.Uri, 'http://toto.com:123/');
Check(not U.Https);
Check(U.From('https://toto.com:123/tata/titi'));
Check(U.Uri = 'https://toto.com:123/tata/titi');
CheckEqual(U.Uri, 'https://toto.com:123/tata/titi');
Check(U.Https);
Check(U.From('https://toto.com:123/tata/tutu:tete'));
Check(U.Uri = 'https://toto.com:123/tata/tutu:tete');
CheckEqual(U.Uri, 'https://toto.com:123/tata/tutu:tete');
Check(U.From('http://user:password@server:port/address'));
Check(not U.Https);
CheckEqual(U.Uri, 'http://server:port/address');
Expand Down

0 comments on commit a6b47bb

Please sign in to comment.