10 lines
178 B
Plaintext
10 lines
178 B
Plaintext
|
# -*- mode: snippet -*-
|
||
|
# name: transform
|
||
|
# key: upr
|
||
|
# --
|
||
|
std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) {
|
||
|
return std::toupper(c);
|
||
|
});
|
||
|
$2
|
||
|
$0
|