U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Enhancing project templates (upt files)
Re: Enhancing project templates (upt files) [FEATURE REQUEST] [message #5486 is a reply to message #5485] Tue, 26 September 2006 21:36 Go to previous messageGo to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
luzr wrote on Tue, 26 September 2006 21:02

ArrayMap<String, EscValue> TemplateDlg::MakeVars0()
{
	ArrayMap<String, EscValue> var;
	String n = ~package;
	int q = n.ReverseFind('/');
	var.Add("PACKAGE", q >= 0 ? n.Mid(q + 1) : n);
	var.Add("PACKAGE_TOUPPER", ToUpper(n));
	var.Add("PACKAGE_TOUPPER_CAPS", ToUpper_Caps(n));
	return var;
}



Mirek


If "package" holds a path and a filename,

only the filename goes into "PACKAGE", but
both the path and the filename go into "PACKAGE_TOUPPER" and
both the path and the filename go into "PACKAGE_TOUPPER_CAPS".

Is that what you want?

I myself would prefer to find just the filename in ("PACKAGE_TOUPPER" and) "PACKAGE_TOUPPER_CAPS".

Werner

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Assamblies and nests
Next Topic: Ctrl Documentation Bug?
Goto Forum:
  


Current Time: Fri Jun 19 06:59:52 GMT+2 2026

Total time taken to generate the page: 0.00874 seconds