自分向けのメモ
%s/GATT Characteristic and Object Type//g
%s/GATT Service//g
%s/0x2A../\r\0\t/g
%s/0x18../\r\0\t/g
0x2A00foo bar hoge0x2A01zzz...
---
0x2A00 foo bar hoge
0x2A01 zzz
...
%s/^\(.*\)\t\(.*\)$/\/\/\/ \2\r\2\t\1/g
0x2A00 foo bar hoge
0x2A01 zzz
---
/// foo bar hoge
foo bar hoge 0x2A00
/// zzz
zzz 0x2A01
...
%s/^\([^\/]*\) /\1_/g
/// foo bar hoge
foo bar hoge 0x2A00
/// zzz
zzz 0x2A01
---
/// foo bar hoge
foo bar_hoge 0x2A00
/// zzz
zzz 0x2A01
%s/^\([^\/]\).*\(\t\)\@=/\U&/g
/// foo bar hoge
foo_bar_hoge 0x2A00
/// zzz
zzz 0x2A01
---
/// foo bar hoge
FOO_BAR_HOGE 0x2A00
/// zzz
ZZZ 0x2A01
%s/^\([^\/]\)\@=/pub const /g
/// foo bar hoge
FOO_BAR_HOGE 0x2A00
/// zzz
ZZZ 0x2A01
---
/// foo bar hoge
pub const FOO_BAR_HOGE 0x2A00
/// zzz
pub const ZZZ 0x2A01
%s/\t/: Uuid = Uuid::new_uuid16(/g
/// foo bar hoge
pub const FOO_BAR_HOGE 0x2A00
/// zzz
pub const ZZZ 0x2A01
---
/// foo bar hoge
pub const FOO_BAR_HOGE: Uuid = Uuid::new_uuid(0x2A00
/// zzz
pub const ZZZ: Uuid = Uuid::new_uuid(0x2A01
%s/^[^\/].*/\0);/g
/// foo bar hoge
pub const FOO_BAR_HOGE: Uuid = Uuid::new_uuid(0x2A00
/// zzz
pub const ZZZ: Uuid = Uuid::new_uuid(0x2A01
---
/// foo bar hoge
pub const FOO_BAR_HOGE: Uuid = Uuid::new_uuid(0x2A00);
/// zzz
pub const ZZZ: Uuid = Uuid::new_uuid(0x2A01);