mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Added the possibility of contextual help on user functions.
Добавлена возможность просмотра скриптов создания пользовательских объектов в контестной помощи. В скриптах имена других объектов заменяются на ссылки. Описание Readme.md
This commit is contained in:
parent
560bf4c080
commit
1f7decd73f
18 changed files with 1016 additions and 159 deletions
|
|
@ -1465,4 +1465,21 @@ bool getArrayFromCommaSeparatedList(const wxString &str, wxArrayString &res)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool make_identifier(const wxString &strname, wxString &s, wxString &n, bool islower) {
|
||||
s=strname.BeforeFirst('.');
|
||||
if (s==strname) {
|
||||
n=strname;
|
||||
s="";
|
||||
} else {
|
||||
// full name
|
||||
n=strname.AfterFirst('.');
|
||||
}
|
||||
//
|
||||
if (n.Find('"')>=0) {
|
||||
n.Replace("\"","");
|
||||
} else {if (islower) n=n.MakeLower();}
|
||||
if (s.Find('"')>=0) {
|
||||
s.Replace("\"","");
|
||||
} else {if (islower) s=s.MakeLower();}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue