acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_string.h
1// Created by camilo on 2022-12-18 20:33 <3ThomasBorregaardSorensen!!
2#pragma once
3
4
6
7
8//CLASS_DECL_ACME ::particle_pointer create_message_box(::particle * pparticle, const ::scoped_string & scopedstrMessage, const ::scoped_string & scopedstrTitle, const ::user::e_message_box & emessagebox, const ::scoped_string & scopedstrDetails, ::nano::graphics::icon * picon);
9
10//CLASS_DECL_ACME ::payload auto pmessageboxpayload = __initialize_new ::message_box_payload(::particle * ppartcicle, const ::scoped_string & scopedstrMessage, const ::scoped_string & scopedstrTitle = nullptr, const ::user::e_message_box & emessagebox = ::user::e_message_box_ok, const ::scoped_string & scopedstrDetails = nullptr, ::nano::graphics::icon * picon = nullptr);
11
12//send(pmessageboxpayload);
13
14//CLASS_DECL_ACME void message_box_asynchronous(::function < void(const ::payload & payload) > function, ::particle * pparticle, const ::scoped_string & scopedstrMessage, const ::scoped_string & scopedstrTitle = nullptr, const ::user::e_message_box & emessagebox = ::user::e_message_box_ok, const ::scoped_string & scopedstrDetails = nullptr, ::nano::graphics::icon * picon = nullptr);
15
16CLASS_DECL_ACME void throw_exit_exception(const ::e_status& estatus = error_failed, ::task* playeredThreadExit = nullptr, const ::scoped_string& scopedstrMessage = nullptr);
17
18CLASS_DECL_ACME void output_error_message(const ::scoped_string & strMessage, const ::scoped_string & strTitle = nullptr, ::i32 iMessageBox = 0);
19CLASS_DECL_ACME void output_debug_string(const ::scoped_string & str);
20CLASS_DECL_ACME void output_debug_string_flush();
22CLASS_DECL_ACME void output_debug_string_formatf(const_char_pointer pszFormat, ...);
23CLASS_DECL_ACME void output_debug_line(const ::scoped_string& str);
24CLASS_DECL_ACME void ansi_output_debug_line(const ::scoped_string& str);
25
26CLASS_DECL_ACME void print_line(const ::scoped_string & scopedstr);
27CLASS_DECL_ACME void print_out(const ::scoped_string & scopedstr);
28CLASS_DECL_ACME void printf_line(const_char_pointer pszFormat, ...);
29CLASS_DECL_ACME void printf_out(const_char_pointer pszFormat, ...);
30CLASS_DECL_ACME void err_line(const ::scoped_string & scopedstr);
31CLASS_DECL_ACME void err_out(const ::scoped_string & scopedstr);
32CLASS_DECL_ACME void errf_line(const_char_pointer pszFormat, ...);
33CLASS_DECL_ACME void errf_out(const_char_pointer pszFormat, ...);
34
35CLASS_DECL_ACME ::string as_string(const ::e_status & estatus);
36
37inline ::string as_string(bool b) { return b ? "1" : "0"; }
38
39CLASS_DECL_ACME void throw_resource_exception(const ::scoped_string & scopedstrMessage);
40CLASS_DECL_ACME void throw_exception(const ::e_status & estatus, const ::scoped_string & scopedstrMessage);
41CLASS_DECL_ACME void throw_exception(const ::e_status & estatus, const ::scoped_string & scopedstrMessage, const ::scoped_string & scopedstrDetails, ::i32 iSkip = -1);
42
43
44template < typename TYPE, enum_type t_etypeContainer >
45inline void implode(const numeric_array_base < TYPE, t_etypeContainer > & a, string & rwstr, const ::scoped_string & scopedstrSeparator = nullptr, ::collection::index start = 0, ::collection::count count = -1);
46
47template < typename TYPE, enum_type t_etypeContainer >
48 inline string implode(const numeric_array_base < TYPE, t_etypeContainer > & a,const ::scoped_string & scopedstrSeparator = nullptr, ::collection::index iStart = 0, ::collection::count iCount = -1);
49
50template < typename TYPE, enum_type t_etypeContainer >
51 string surround_and_implode(const numeric_array_base < TYPE, t_etypeContainer > & a,const ::scoped_string & scopedstrSeparator = nullptr, const ::scoped_string & scopedstrPrefix = nullptr, const ::scoped_string & scopedstrSuffix = nullptr, ::collection::index iStart = 0, ::collection::count iCount = -1);
52
53#include "acme/prototype/collection/_impl_string_array.h"
54#include "acme/prototype/prototype/_impl_atom.h"
55//#include "acme/prototype/collection/_impl_factory.h"
56#include "acme/prototype/prototype/_impl_payload.h"
57#include "acme/prototype/prototype/_impl_type.h"
58#include "acme/filesystem/file/_impl_write_text_stream.h"
59#include "acme/filesystem/filesystem/_impl_path.h"
60
61
62
63
64
65
66
Definition task.h:117