PhoenixGenerator
2.8.0
Set of tools to generate code
Toggle main menu visibility
Loading...
Searching...
No Matches
gitlab_doc.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : CeCILL-C
5
****************************************/
6
7
8
#include "
gitlab_doc.h
"
9
11
14
PString
getGitlabDocUrl
(
const
PString & projectUrl){
15
PString docUrl;
16
if
(!projectUrl.isSameBegining(
"https://gitlab"
)){
17
return
docUrl;
18
}
19
PVecString vecSeparator(projectUrl.split(
'/'
));
20
if
(vecSeparator.size() < 5lu){
21
return
docUrl;
22
}
23
docUrl +=
"https://"
+ vecSeparator[3lu].toLower() +
".pages"
+ vecSeparator[2lu].replace(
"gitlab"
,
""
) +
"/"
;
24
for
(
size_t
i(4lu); i < vecSeparator.size(); ++i){
25
docUrl += vecSeparator[i] +
"/"
;
26
}
27
return
docUrl;
28
}
29
30
getGitlabDocUrl
PString getGitlabDocUrl(const PString &projectUrl)
Get the documentation url of the given project url if possible.
Definition
gitlab_doc.cpp:14
gitlab_doc.h
src
BackEnd
gitlab_doc.cpp
Generated by
1.17.0