Home
last modified time | relevance | path

Searched refs:slashpos (Results 1 – 25 of 136) sorted by relevance

123456

/dports/audio/mpg123/mpg123-1.29.3/src/
H A Dsysutil.c36 char * slashpos = strrchr(path, '/'); in dir_length() local
37 return (slashpos ? slashpos-path : 0); in dir_length()
54 char *slashpos; in split_dir_file() local
56 if ((slashpos = strrchr(path, '/'))) { in split_dir_file()
57 *fname = slashpos + 1; in split_dir_file()
63 (*dname)[1 + slashpos - path] = 0; in split_dir_file()
/dports/audio/sdl2_mixer/SDL2_mixer-2.0.4/external/mpg123-1.25.6/src/
H A Dsysutil.c36 char * slashpos = strrchr(path, '/');
37 return (slashpos ? slashpos-path : 0);
54 char *slashpos; in GetError()
56 if ((slashpos = strrchr(path, '/'))) { in GetError()
57 *fname = slashpos + 1; in GetError()
63 (*dname)[1 + slashpos - path] = 0; in GetError()
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/llvm12/llvm-project-12.0.1.src/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/wasi-compiler-rt11/compiler-rt-11.0.1.src/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/devel/llvm13/llvm-project-13.0.1.src/compiler-rt/test/profile/
H A Dinstrprof-path.c28 int slashpos = strlen(prefix); in main() local
29 if (slashpos > 0) { in main()
30 --slashpos; in main()
31 if (prefix[slashpos] != '/' && prefix[slashpos] != '\\') in main()
35 if (strncmp(prefix, expected, slashpos)) in main()
/dports/games/aquaria/Aquaria-OSE-v1.002-22-g84366ad/ExternalLibs/ttvfs/
H A DVFSDir.cpp31 const char *slashpos = strchr(fn, '/'); in getFile() local
32 if(!slashpos) in getFile()
40 File *f = getFileFromSubdir(dirname, slashpos + 1); in getFile()
63 char *slashpos = (char *)strchr(subdir, '/'); in _getDirEx() local
66 if(slashpos) in _getDirEx()
69 const char *sub = slashpos + 1; in _getDirEx()
104 char *slashpos = strchr(s, '/'); in _createAndInsertSubtree() local
105 if(slashpos) in _createAndInsertSubtree()
112 *slashpos = 0; in _createAndInsertSubtree()
121 if(!slashpos) in _createAndInsertSubtree()
[all …]
H A DVFSDirInternal.cpp150 char *slashpos = strchr(path, '/'); in _addToView() local
151 char *tail = slashpos ? slashpos+1 : &dummy; in _addToView()
153 if(slashpos == path) in _addToView()
156 if(slashpos) in _addToView()
157 *slashpos = 0; in _addToView()
169 if(slashpos) in _addToView()
170 *slashpos = '/'; in _addToView()
/dports/sysutils/kcron/kcron-21.12.3/src/crontablib/
H A Dctunit.cpp84 int commapos, slashpos, dashpos; in parse() local
93 slashpos = subelement.indexOf(QLatin1Char('/')); in parse()
94 if (slashpos == -1) { in parse()
96 slashpos = subelement.length(); in parse()
98 step = fieldToValue(subelement.mid(slashpos + 1, subelement.length() - slashpos - 1)); in parse()
108 if (subelement.mid(0, slashpos) == QLatin1Char('*')) { in parse()
112 beginat = fieldToValue(subelement.mid(0, slashpos)); in parse()
117 endat = fieldToValue(subelement.mid(dashpos + 1, slashpos - dashpos - 1)); in parse()
/dports/games/golly/golly-3.3-src/gollybase/
H A Dliferules.cpp879 if (slashpos) { in setrule()
883 slashpos = t ; in setrule()
1001 if (underscorepos && slashpos) { in setrule()
1012 slashpos = underscorepos ; in setrule()
1055 if ((bpos < slashpos && spos < slashpos) || (bpos > slashpos && spos > slashpos)) { in setrule()
1061 if (!slashpos) { in setrule()
1095 *slashpos = 0 ; in setrule()
1100 if ((bpos && bpos < slashpos) || (spos && spos > slashpos)) { in setrule()
1103 spos = slashpos + 1 ; in setrule()
1107 bpos = slashpos + 1 ; in setrule()
[all …]
H A Dgenerationsalgo.cpp890 if (slashpos) { in setrule()
902 slashpos = t ; in setrule()
1001 if (!slashpos || !slashpos2) { in setrule()
1043 if (slashpos && bpos && spos) { in setrule()
1044 if ((bpos < slashpos && spos < slashpos) || (bpos > slashpos && spos > slashpos)) { in setrule()
1050 if (!slashpos) { in setrule()
1084 *slashpos = 0 ; in setrule()
1089 if ((bpos && bpos < slashpos) || (spos && spos > slashpos)) { in setrule()
1092 spos = slashpos + 1 ; in setrule()
1096 bpos = slashpos + 1 ; in setrule()
[all …]
/dports/science/yoda/YODA-1.9.1/src/
H A DWriterAIDA.cc84 const size_t slashpos = s.path().rfind("/"); in writeScatter2D() local
85 if (slashpos != string::npos) { in writeScatter2D()
86 name = s.path().substr(slashpos+1, s.path().length() - slashpos - 1); in writeScatter2D()
87 if (slashpos > 0) path = s.path().substr(0, slashpos); in writeScatter2D()
/dports/astro/opencpn/OpenCPN-5.2.4/src/
H A DPluginHandler.cpp413 if(slashpos < 0){ in win_entry_set_install_path()
418 string prefix = path.substr(0, slashpos); in win_entry_set_install_path()
423 slashpos = path.find_first_of('/'); in win_entry_set_install_path()
424 path = path.substr(slashpos + 1); in win_entry_set_install_path()
432 slashpos = path.find_first_of('/'); in win_entry_set_install_path()
434 path = path.substr(slashpos + 1); in win_entry_set_install_path()
462 string prefix = path.substr(0, slashpos); in flatpak_entry_set_install_path()
464 slashpos = path.find_first_of('/'); in flatpak_entry_set_install_path()
494 string prefix = path.substr(0, slashpos); in linux_entry_set_install_path()
502 slashpos = path.find_first_of('/'); in linux_entry_set_install_path()
[all …]
/dports/archivers/zoo/zoo-2.10.1_4/
H A Dmisc2.c191 char *slashpos; local
199 slashpos = findlast(path, PATH_CH); /* find last slash */
200 if (slashpos == NULL) { /* if not, just create dir. */
204 if (slashpos == path) { /* if leading slash */
205 MKDIR(slashpos); /* make that directory */
209 *slashpos = '\0'; /* split into prefix & suffix */
/dports/deskutils/recoll/recoll-1.31.2/kde/kioslave/kio_recoll-kde4/
H A Ddirif.cpp70 int slashpos = path.lastIndexOf("/"); in isRecollResult() local
71 if (slashpos == -1 || slashpos == 0 || slashpos == path.length() -1) in isRecollResult()
73 slashpos++; in isRecollResult()
76 if (path.mid(slashpos, resultBaseName.length()).compare(resultBaseName)) in isRecollResult()
80 QString snum = path.mid(slashpos + resultBaseName.length()); in isRecollResult()
89 *q = path.mid(1, slashpos-2); in isRecollResult()
/dports/deskutils/recoll/recoll-1.31.2/kde/kioslave/kio_recoll/
H A Ddirif.cpp77 int slashpos = path.lastIndexOf("/"); in isRecollResult() local
78 if (slashpos == -1 || slashpos == 0 || slashpos == path.length() - 1) { in isRecollResult()
81 slashpos++; in isRecollResult()
84 if (path.mid(slashpos, resultBaseName.length()).compare(resultBaseName)) { in isRecollResult()
89 QString snum = path.mid(slashpos + resultBaseName.length()); in isRecollResult()
99 *q = path.mid(1, slashpos - 2); in isRecollResult()
/dports/games/zoom/zoom-1.1.5/src/
H A Dmain.c135 int x, len, slashpos; in zoom_main() local
141 slashpos = -1; in zoom_main()
147 slashpos = x; in zoom_main()
150 slashpos = x; in zoom_main()
154 for (x=slashpos+1; in zoom_main()
158 name[x-slashpos-1] = args.story_file[x]; in zoom_main()
160 name[x-slashpos-1] = 0; in zoom_main()
/dports/games/zdoom/zdoom-2.8.1/src/
H A Ds_playlist.cpp104 long slashpos = song.IndexOf('/'); in ChangeList() local
106 if (slashpos == 0) in ChangeList()
111 else if (slashpos == 2 && song[1] == ':') in ChangeList()
116 else if (song.IndexOf("://") == slashpos - 1) in ChangeList()

123456