// Copyright (c) .NET Foundation. All rights reserved.// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.// Not exported from index/** @private */exportclassTextMessageFormat{publicstaticRecordSeparatorCode=0x1e;publicstaticRecordSeparator=String.fromCharCode(TextMessageFormat.RecordSeparatorCode);publicstaticwrite(output:string):string{return`${output}${TextMessageFormat.RecordSeparator}`;}publicstaticparse(input:string):string[]{if(input[input.length-1]!==TextMessageFormat.RecordSeparator){thrownewError("Message is incomplete.");}constmessages=input.split(TextMessageFormat.RecordSeparator);messages.pop();returnmessages;}}