Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Visualizations.cpp
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#include "Stroika/Foundation/StroikaPreComp.h"
5
7#include "Stroika/Foundation/Common/GUID.h"
13#include "Stroika/Foundation/IO/Network/SocketAddress.h"
18
19#include "Visualizations.h"
20
21using namespace std;
22
23using namespace Stroika::Foundation;
25using namespace Stroika::Foundation::Debug;
26
27namespace {
28
29 [[maybe_unused]] Visualizations::StringRep<char8_t> kFake_8_; // so code gets linked in...
30 [[maybe_unused]] Visualizations::StringRep<char16_t> kFake_16_;
31 [[maybe_unused]] Visualizations::StringRep<char32_t> kFake_32_;
32
33}
34/**
35 * Only purpose of this is for debugger, since most debuggers support natively visualizing wstring
36 */
37
39 bool Private_::gMagicSoIncluded = true;
40
41 void ForceInclude ()
42 {
43 // automatically 'forced include' if you #include header and are building qStroika_Foundation_Debug_AssertionsChecked. But to include otherwise (e.g. release build) - call this method.
44 }
45 u8string ToStdString (const u8string& a)
46 {
47 return a;
48 }
50 {
51 return t.str ().AsUTF8 ();
52 }
54 {
55 return t.ToString ().AsUTF8 ();
56 }
58 {
59 return t.ToString ().AsUTF8 ();
60 }
62 {
63 return t.ToString ().AsUTF8 ();
64 }
66 {
67 return t.ToString ().AsUTF8 ();
68 }
70 {
71 return t.ToString ().AsUTF8 ();
72 }
74 {
75 return t.ToString ().AsUTF8 ();
76 }
78 {
79 // @todo improve this so shows dereferenced ToString() data
80 return t.ToString ().AsUTF8 ();
81 }
83 {
84 return t.ToString ().AsUTF8 ();
85 }
87 {
88 return t.ToString ().AsUTF8 ();
89 }
90 u8string ToStdString (const Stroika::Foundation::Time::DateTime& t)
91 {
92 return t.ToString ().AsUTF8 ();
93 }
95 {
96 return t.ToString ().AsUTF8 ();
97 }
98}
Similar to String, but intended to more efficiently construct a String. Mutable type (String is large...
Simple variant-value (case variant union) object, with (variant) basic types analogous to a value in ...
nonvirtual String ToString() const
Definition CIDR.cpp:66
nonvirtual String ToString() const
Definition URI.cpp:282
nonvirtual String ToString() const
Definition Date.inl:389
nonvirtual String ToString() const
Definition TimeOfDay.inl:52
u8string ToStdString(const u8string &a)
tons of overloads declared inside CPP file. This is not meant to be called directly by any C++ code,...
STL namespace.
nonvirtual Characters::String ToString() const
Definition GUID.cpp:64