代码之家  ›  专栏  ›  技术社区  ›  ereOn

有关Microsoft多字符串格式的详细信息

  •  9
  • ereOn  · 技术社区  · 14 年前

    some of its API function

    下面是一个例子。由以下项目组成的列表:

    "apple", "banana", "orange"
    

    变成:

    apple\0banana\0orange\0\0
    

    但现在我想知道:

    你会怎么做 空列表 被代表?

    会是:

    \0
    

    或:

    \0\0
    

    我没有找到一份准确的文件来澄清这一点。有什么线索吗?

    3 回复  |  直到 10 年前
        1
  •  9
  •   dan04    14 年前
        2
  •  3
  •   James McNellis    14 年前
        3
  •  2
  •   James Curran    14 年前

    如果您正在使用这些工具,很多年前,我编写了一个STL风格的迭代器来处理它们:

    http://noveltheory.com/iterators/Iterator_N3.htm