// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/accelerators/menu_label_accelerator_util_linux.h" #include <stddef.h> namespace { // Common implementation of ConvertAcceleratorsFromWindowsStyle() and // RemoveWindowsStyleAccelerators(). // Replaces all ampersands (as used in our grd files to indicate mnemonics) // to |target|, except ampersands appearing in pairs which are replaced by // a single ampersand. Any underscores get replaced with two underscores as // is needed by GTK. std::string ConvertAmpersandsTo(const std::string& label, const std::string& target) { … } } // namespace namespace ui { std::string ConvertAcceleratorsFromWindowsStyle(const std::string& label) { … } std::string RemoveWindowsStyleAccelerators(const std::string& label) { … } } // namespace ui