SOL9 Sample: StringT

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * StringT.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL9
// 2009/10/22


#pragma once

#include <sol/StringT.h>
#include <sol/Locale.h>

void _tmain(int argc, TCHAR** argv)
{
  Locale locale;

  StringT<char> a = "http";
  a = a + "://";
  a = a + "www.antillia.com:";
  a = a + 80;
  a = a + "/index.html";

  printf("1 %s\n", (const char*)a);

  StringT<wchar_t> b = L"10.0/3.0";
  b = b + L"=";
  b = b + float(10.0/3.0);
  b = b + L" こんちは ";
  b = b + L" 世界 ";
  b = b + L" さようなら ";
  b = b + L" 世界 ";

  printf("2 %S\n", (const wchar_t*)b);

}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.