You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
450 B
C++

#include <iostream>
#include "miptstring.h"
#include "miptstringview.h"
using namespace std;
int main() {
mipt::String a = "abcd";
mipt::String b = "abce";
mipt::StringView av = a;
mipt::StringView bv = b;
//cout << (b < a) << endl;
//cout << (bv < av) << endl;
cout << av.substr(1,10) << endl;
av.remove_suffix(2);
cout << av << endl;
mipt::String meow = av;
cout << "sv to string: " << meow << endl;
}