mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55421 954022d7-b5bf-4e40-9824-e11837661b57
35 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|