Translate PlaceholderParser::apply_config to C++.
Merge pull request #2091 from sapir/cpp_placeholder_apply_config

Translate PlaceholderParser::apply_config to C++.