public static void Main()
string text = "我们调整了工商银行的模型,并将2021/2022/2023年的盈利预测分别上调3.4%/3.8%/4.8%,以反映最新的2021年上半年业绩情况。我们将目标价的估值截至日延展至2022年12月,并将目标价上调至5.20港元(上调幅度为2.0%)。维持“中性”评级。abc";
Console.WriteLine(text.Length);
if (text == null || text.Length < length)
Console.WriteLine("top");
Console.WriteLine("bottom");
int iNextSpace = text.LastIndexOf(" ", length);
Console.WriteLine(iNextSpace);
iNextSpace = (iNextSpace > 0) ? iNextSpace : length-1;
Console.WriteLine(iNextSpace);
shownText = text.Substring(0, iNextSpace).Trim();
hiddenText = " " + text.Substring(iNextSpace + 1);
Console.WriteLine(shownText);
Console.WriteLine(hiddenText);
Console.WriteLine("end");
Console.WriteLine("end");