Home | History | Annotate | Download | only in ndk-depends

Lines Matching defs:String

59 #include <string.h>
62 #include <string>
64 // Define String as a typedef for either std::string or std::wstring
67 typedef std::wstring String;
69 typedef std::string String;
90 // Use TO_STRING(xxx) to convert a C-string into the equivalent String.
92 static inline std::wstring __s2ws(const std::string& s) {
126 #include <string.h>
132 #include <string>
198 // or std::string::npos if none is found.
199 size_t path_last_dirsep(const String& filepath) {
204 if (sep_slash == std::string::npos)
206 else if (sep_backslash == std::string::npos)
217 String path_dirname(const String& filepath) {
219 if (sep == std::string::npos)
220 return String(_T("."));
222 return String(_T("/"));
228 String path_basename(const String& filepath) {
230 if (sep == std::string::npos)
547 // Return the index of the string table for the dynamic section
575 // Return a string identified by its index and its string table
576 // Address. Returns an empty string in case of error.
577 String GetStringByIndex(Off str_index, int str_table_index) {
578 String result;
674 String GetLibNameT(Reader& reader) {
684 return String();
688 int GetNeededLibsT(Reader& reader, std::vector<String>* result) {
696 String lib_name = parser.GetStringByIndex(str_index, str_table_index);
716 bool Open(const TCHAR* path, String* error) {
752 String GetLibName() {
761 int GetNeededLibs(std::vector<String>* result) {
796 std::vector<String>* lib_search_path) {
834 String pattern(begin, len);
844 String filepath;
860 String dirpath(begin, len);
881 void AddHostLibraryPaths(std::vector<String>* lib_search_path) {
904 lib_search_path->push_back(String(pos, path_len));
918 bool IsAndroidSystemLib(const String& libname) {
945 bool IsAndroidNdkCompatibleLib(const String& libname) {
954 bool FindLibraryPath(const String& libname,
955 const std::vector<String>& search_paths,
956 String* result) {
960 String file_path = search_paths[n];
995 NODE_ERROR, // Invalid library name, |value| is error string.
1000 String value;
1001 std::vector<String> needed_libs;
1005 explicit LibNode(const String& path)
1008 void Set(Type type_p, const String& value_p) {
1014 typedef std::map<String, LibNode> DependencyGraph;
1015 typedef std::list<String> WorkQueue;
1019 const String& libname,
1020 const String& libpath,
1032 String error;
1033 String soname = libname;
1037 String soname = libfile.GetLibName();
1067 const String& root_libpath,
1068 const std::vector<String>& lib_search_path) {
1070 std::list<String> queue;
1080 String libname = queue.front();
1091 String libpath;
1121 const String& libname = iter->first;
1123 String node_type;
1156 std::vector<String>* result) {
1159 typedef std::map<String, int> VisitorMap;
1168 const std::vector<String>& needed_libs = iter->second.needed_libs;
1170 const String& libname = needed_libs[n];
1195 String min_libname;
1225 const std::vector<String> needed_libs = node.needed_libs;
1309 std::vector<String> lib_search_path;
1310 std::vector<String> params;
1325 lib_search_path.push_back(String(argv[2]));
1329 lib_search_path.push_back(String(arg+2));
1344 params.push_back(String(argv[1]));
1371 String error;
1378 std::vector<String> needed_libs;
1396 std::vector<String> needed_libs;
1403 const String& lib = needed_libs[i];
1426 const String& libname = needed_libs[i];
1427 const std::vector<String>& libdeps = deps[libname].needed_libs;
1441 const String& lib = needed_libs[i];
1461 const String& lib = needed_libs[i];