Files
core/Test/Applications/DocxFormatCodeGen/codegen/Utils.cs
Sergey.Konovalov ffe66c7825 массив массивов [][]
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55421 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:50:00 +03:00

35 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace codegen
{
class Utils
{
public static string gc_sBinaryChartReader = "BinaryChartReader";
public static string gc_sBinaryChartWriter = "BinaryChartWriter";
public static string gc_sFilePrefix = "//Generated code\r\n";
public static string gc_sMemberPrefix = "m_";
public static string gc_sSerToBinEnumPrefix = "c_oSer";
public static string gc_sItemsChoiceType = "ItemsChoiceType";
public static string gc_sItemsElementName = "ItemsElementName";
public static string GetEnumElemName(string sEnumName, string sElemName)
{
return sEnumName.ToLower() + sElemName.ToUpper();
}
public static string GetSerEnumElemName(string sEnumName, string sElemName)
{
return GetEnumElemName(gc_sSerToBinEnumPrefix + sEnumName, sElemName);
}
public static string GetMemberElemName(string sElemName)
{
return gc_sMemberPrefix + sElemName;
}
public static string GetClassName(string sElemName)
{
return "CT_" + sElemName;
}
}
}