10 references to GetUnicodeLength
Microsoft.TemplateEngine.Cli (10)
TabularOutput\TabularOutput.cs (10)
366{ TextAlign.Left, (string abbreviatedText, int maxColumnWidth, StringBuilder b) => b.Append(abbreviatedText).Append(' ', maxColumnWidth - abbreviatedText.GetUnicodeLength()) },
370var centralPoint = (maxColumnWidth + abbreviatedText.GetUnicodeLength()) / 2;
372var rightOffset = maxColumnWidth - (leftOffset + abbreviatedText.GetUnicodeLength());
376{ TextAlign.Right, (string abbreviatedText, int maxColumnWidth, StringBuilder b) => b.Append(' ', maxColumnWidth - abbreviatedText.GetUnicodeLength()).Append(abbreviatedText) }
393if (text.Substring(position, newlineIndex - position).GetUnicodeLength() <= maxWidth)
408realMaxWidth = Math.Max(realMaxWidth, lines[lines.Count - 1].GetUnicodeLength());
434if (text.Substring(position, text.Length - position).GetUnicodeLength() < maxLength)
442while (lastBreak > 0 && text.Substring(position, lastBreak - position).GetUnicodeLength() > maxLength)
465if (text.GetUnicodeLength() <= maxLength)
474while (text.Substring(0, possibleLength).GetUnicodeLength() <= desiredLength)