Skip to content

Instantly share code, notes, and snippets.

View utilForever's full-sized avatar

Chris Ohk utilForever

View GitHub Profile
@utilForever
utilForever / tolower.cpp
Last active August 29, 2015 14:27
tolower function comparison
#include <iostream>
#include <string>
#include <chrono>
void tolower1(std::string& s)
{
for (auto& c : s)
{
if (c <= 'Z' && c >= 'A')
c = c - ('Z' - 'z');