2.1.1057 Part 4 Section 3.17.7.270, REPLACEB

a.   The standard does not specify that argument start-pos and number-bytes are measured in bytes.

Office measures argument start-pos and number-bytes in bytes.

b.   The standard states that REPLACEB is intended for use with languages that use the double-byte character set (DBCS) and REPLACE is intended for use with languages that use the single-byte character set (SBCS).

In Office, REPLACEB is intended for use with languages that use the double-byte character set (DBCS) and REPLACE is intended for use with any language.

c.   The standard specifies that start-pos shall be greater than or equal to 0.

In Office, start-pos shall be greater than or equal to1.

d.   The standard does not specify which languages support DBCS.

In Office, the languages that support DBCS include Japanese, Chinese (Simplified), Chinese (Traditional), and Korean.

e.   The standard does not specify behavior of REPLACEB when default language supports DBCS and when it does not support DBCS.

In Office, when the default language supports DBCS, REPLACEB counts each double-byte character as 2 bytes, and each single-byte character as 1. When the default language does not support DBCS, REPLACEB counts each character as 1 byte.

Show: