Pchp.Core.PhpString.Append C# (CSharp) Method

Append() public method

public Append ( PhpString value ) : void
value PhpString
return void
        public void Append(PhpString value)
        {
            if (value != null && !value.IsEmpty)
            {
                Debug.Assert(value._chunks != null);

                if (value.IsArrayOfChunks)
                {
                    AddChunk(value);
                }
                else
                {
                    AddChunk(value._chunks);    // if containing only one chunk, add it directly
                }

                _flags |= (value._flags & Flags.ContainsBinary);    // maintain the binary data flag
            }
        }

Same methods

PhpString::Append ( byte value ) : void
PhpString::Append ( string value ) : void

Usage Example

Exemplo n.º 1
0
            public PhpString Serialize(PhpValue value)
            {
                _output = new PhpString();
                _indent = 0;

                //
                Accept(value);
                _output.Append(_nl);

                return _output;
            }