-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
761 additions
and
787 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+142 KB
src/.vs/HmChatGPT/FileContentIndex/09f87310-48f1-4f1b-b9e7-5f3afa52f6e7.vsidx
Binary file not shown.
Binary file removed
BIN
-142 KB
src/.vs/HmChatGPT/FileContentIndex/2c261779-9b9d-4bf6-a349-ddbcf464538c.vsidx
Binary file not shown.
Binary file added
BIN
+7.76 KB
src/.vs/HmChatGPT/FileContentIndex/2d00f1ab-a795-426e-a52f-f2d0dd971493.vsidx
Binary file not shown.
Binary file removed
BIN
-7 KB
src/.vs/HmChatGPT/FileContentIndex/66e43c0a-9899-4fb8-8861-df72c8e21fb3.vsidx
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
using HmNetCOM; | ||
|
||
namespace HmOpenAIChatGpt | ||
namespace HmOpenAIChatGpt; | ||
|
||
internal class HmOutputWriter : IOutputWriter | ||
{ | ||
internal class HmOutputWriter : IOutputWriter | ||
{ | ||
public const string NewLine = "\r\n"; | ||
public const string NewLine = "\r\n"; | ||
|
||
public HmOutputWriter() { } | ||
public HmOutputWriter() { } | ||
|
||
public string Normalize(string? msg) | ||
public string Normalize(string? msg) | ||
{ | ||
if (msg == null) | ||
{ | ||
if (msg == null) | ||
{ | ||
return ""; | ||
} | ||
|
||
var norm = msg.Replace("\n", NewLine); | ||
norm = norm.Replace("\r\r", "\r"); | ||
return norm; | ||
return ""; | ||
} | ||
|
||
public int Write(string msg) | ||
{ | ||
var norm = Normalize(msg); | ||
int status = Hm.OutputPane.Output(norm); | ||
return status; | ||
} | ||
var norm = msg.Replace("\n", NewLine); | ||
norm = norm.Replace("\r\r", "\r"); | ||
return norm; | ||
} | ||
|
||
public int WriteLine(string msg) | ||
{ | ||
var norm = Normalize(msg); | ||
int status = Hm.OutputPane.Output(norm + NewLine); | ||
return status; | ||
} | ||
public int Write(string msg) | ||
{ | ||
var norm = Normalize(msg); | ||
int status = Hm.OutputPane.Output(norm); | ||
return status; | ||
} | ||
|
||
public int WriteLine(string msg) | ||
{ | ||
var norm = Normalize(msg); | ||
int status = Hm.OutputPane.Output(norm + NewLine); | ||
return status; | ||
} | ||
} |
Oops, something went wrong.