LiteralString.h 866 B

1234567891011121314151617181920
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace Js
  7. {
  8. class LiteralString : public JavascriptString
  9. {
  10. protected:
  11. LiteralString(StaticType* type);
  12. LiteralString(StaticType* type, const char16* content, charcount_t charLength);
  13. DEFINE_VTABLE_CTOR(LiteralString, JavascriptString);
  14. public:
  15. static LiteralString* New(StaticType* type, const char16* content, charcount_t charLength, Recycler* recycler);
  16. static LiteralString* CreateEmptyString(StaticType* type);
  17. };
  18. }