This file contains hidden or 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
| void main() { | |
| for (int i = 0; i < 5; i++) { | |
| print('hello ${i + 1}'); | |
| } | |
| } |
This file contains hidden or 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
| /// <summary> | |
| /// Split WEBVTT with string input. | |
| /// </summary> | |
| /// <param name="input"></param> | |
| /// <param name="linefeed"></param> | |
| /// <returns> content </returns> | |
| public static string SplitWEBVTT(string input ,bool linefeed){ | |
| string content = ""; | |
| string linefeedtext = linefeed? "\r\n\r\n" : "\r\n"; | |
| foreach(var myString in input.Split("\r\n".ToCharArray(),StringSplitOptions.RemoveEmptyEntries)){ |