Exemplo n.º 1
0
        /// <summary>
        /// Takes an escaped string literal
        /// </summary>
        /// <param name="value">Value.</param>
        public CharacterLiteral(string value)
        {
            var text = value.NotNull();

            this.Codepoint = char.ConvertToUtf32(PsiString.Unescape(text), 1);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Takes an escaped string literal
        /// </summary>
        /// <param name="value">Value.</param>
        public StringLiteral(string value)
        {
            var text = value.NotNull();

            this.Text = PsiString.Unescape(text);
        }