1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef TOOLS_GN_FRAMEWORKS_UTILS_H_ 6 #define TOOLS_GN_FRAMEWORKS_UTILS_H_ 7 8 #include <string> 9 #include <string_view> 10 11 // Returns the name of the framework from a file name. This returns an empty 12 // string_view if the name is incorrect (does not ends in ".framework", ...). 13 std::string_view GetFrameworkName(const std::string& file); 14 15 #endif // TOOLS_GN_FRAMEWORKS_UTILS_H_ 16