acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
string_block.h
1
// Created by camilo on 2022-04-26 06:56 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
//
5
//class CLASS_DECL_ACME string_block :
6
// public block
7
//{
8
//public:
9
//
10
// string_block(const ::scoped_string & scopedstr, character_count length) : block(scopedstr, length) { }
11
// string_block(const ::scoped_string & scopedstr) : block(scopedstr, ::ansi_length(scopedstr)) { }
12
//
13
//
14
// ::i8 first() const { return (::i8)m_pdata[0]; }
15
// ::i8 & first() { return (::i8 &)m_pdata[0]; }
16
// ::i8 last() const { return (::i8)m_pdata[m_iSize - 1]; }
17
// ::i8 & last() { return (::i8 &)m_pdata[m_iSize - 1]; }
18
//
19
//
20
// ::i32 compare(const ::scoped_string & scopedstr)const { return strncmp((const_char_pointer )m_pdata, psz, m_iSize); }
21
// ::i32 case_insensitive_order(const ::scoped_string & scopedstr)const { return strnicmp((const_char_pointer )m_pdata, psz, m_iSize); }
22
// bool operator == (const ::scoped_string & scopedstr)const { return compare(scopedstr) == 0; }
23
// bool operator != (const ::scoped_string & scopedstr) const { return!operator==(scopedstr); }
24
//};
25
//
26
27
prototype
string
string_block.h
Generated by
1.17.0