Skip to content

IbPinyinLib v0.2.5

Compare
Choose a tag to compare
@Chaoses-Ib Chaoses-Ib released this 19 Apr 22:05
· 6 commits to master since this release

新功能

  • Minimal / C / AHK2:增加 find_match API,允许获取匹配范围(#4

    AHK2 用例:

    text := "拼音搜索Everything"
    IsMatch := IbPinyin_Match("pysousuoeve", text, IbPinyin_AsciiFirstLetter | IbPinyin_Ascii, &start, &end)
    MsgBox(IsMatch ": " start ", " end ", " SubStr(text, start, end - start))
    
    文本 := "拼音搜索Everything"
    是否匹配 := 拼音_匹配("pysousuoeve", 文本, 拼音_简拼 | 拼音_全拼, &开始位置, &结束位置)
    MsgBox(是否匹配 ": " 开始位置 ", " 结束位置 ", " SubStr(文本, 开始位置, 结束位置 - 开始位置))