Skip to content

Instantly share code, notes, and snippets.

@zno5
zno5 / utf8.cpp
Last active October 3, 2016 07:29
Some functions to work with UTF-8 string : you can check if a string is valid UTF-8, get the length of a UTF-8 string and replace things in a UTF-8 string.
//
// utf8.cpp
//
// Created by Jinho Bak on 9/30/16.
// Copyright (c) 2016 Jinho Bak. All rights reserved.
//
#include <vector>
#include <string>