Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,53 @@ public override void SetBufferContents(
this.internalRawUI.SetBufferContents(origin, contents);
}

/// <summary>
/// Determines the number of BufferCells a character occupies.
/// </summary>
/// <param name="source">
/// The character whose length we want to know.
/// </param>
/// <returns>
/// The length in buffer cells according to the original host
/// implementation for the process.
/// </returns>
public override int LengthInBufferCells(char source)
{
return this.internalRawUI.LengthInBufferCells(source);
}
/// <summary>
/// Determines the number of BufferCells a string occupies.
/// </summary>
/// <param name="source">
/// The string whose length we want to know.
/// </param>
/// <returns>
/// The length in buffer cells according to the original host
/// implementation for the process.
/// </returns>
public override int LengthInBufferCells(string source)
{
return this.internalRawUI.LengthInBufferCells(source);
}

/// <summary>
/// Determines the number of BufferCells a substring of a string occupies.
/// </summary>
/// <param name="source">
/// The string whose substring length we want to know.
/// </param>
/// <param name="offset">
/// Offset where the substring begins in <paramref name="source"/>
/// </param>
/// <returns>
/// The length in buffer cells according to the original host
/// implementation for the process.
/// </returns>
public override int LengthInBufferCells(string source, int offset)
{
return this.internalRawUI.LengthInBufferCells(source, offset);
}

#endregion

/// <summary>
Expand Down