コード例 #1
0
 /// <summary>
 /// Create a new instance of <see cref="PositionalPropertyToken"/>.
 /// </summary>
 /// <param name="originText"></param>
 /// <param name="formatOriginText"></param>
 /// <param name="paramsOriginText"></param>
 /// <param name="index"></param>
 /// <param name="position"></param>
 /// <param name="paramsFlagMode"></param>
 /// <param name="fixOriginTextLength"></param>
 public PositionalPropertyToken(string originText, string formatOriginText, string paramsOriginText,
                                int index, int position, int paramsFlagMode, int fixOriginTextLength = 2)
     : base(originText, index, position, 1, fixOriginTextLength)
 {
     FormatEvents             = new List <FormatEvent>();
     RawFormatText            = formatOriginText;
     RawParamsText            = paramsOriginText;
     ParamsFlagMode           = paramsFlagMode;
     PositionalParameterValue = MachiningForPositionalValue(TokenString);
     Format = MachiningForFormat(RawFormatText, FormatEvents);
     Params = MachiningForParams(RawParamsText);
     PropertyResolvingMode = PropertyResolvingToucher.Touch(RawFormatText);
 }
コード例 #2
0
 public PropertyToken(string originText, string formatOriginText, string paramsOriginText,
                      int index, int position, PropertyTokenTypes type, int paramsFlagMode, int fixOriginTextLength = 3)
     : base(originText, index, position, fixOriginTextLength)
 {
     FormatEvents          = new List <FormatEvent>();
     TokenType             = type;
     RawFormatText         = formatOriginText;
     RawParamsText         = paramsOriginText;
     ParamsFlagMode        = paramsFlagMode;
     Prefix                = MachiningForTokenPrefix(TokenString, out prefixPointer);
     Name                  = MachiningForTokenName(TokenString, prefixPointer);
     Format                = MachiningForFormat(RawFormatText, FormatEvents);
     Params                = MachiningForParams(RawParamsText);
     PropertyResolvingMode = PropertyResolvingToucher.Touch(RawFormatText);
 }