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
uses | |
ActiveX, MSHTML, SHDocVw, MarkdownCommonMark, MarkdownProcessor; // uses https://github.com/grahamegrieve/delphi-markdown | |
procedure TForm1.Button1Click(Sender: TObject); | |
var | |
ResStream: TResourceStream; | |
StringStream: TStringStream; | |
FormAbout: TForm; | |
WebBrowser1: TWebBrowser; | |
commonmark : TMarkdownProcessor; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
use std::str; | |
fn main() { | |
// -- FROM: vec of chars -- | |
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
// to String | |
let string1: String = src1.iter().collect::<String>(); | |
// to str | |
let str1: &str = &src1.iter().collect::<String>(); | |
// to vec of byte |