PhoenixGenerator  2.0.4
Set of tools to generate code
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
14PString 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
PString getGitlabDocUrl(const PString &projectUrl)
Get the documentation url of the given project url if possible.