ONE-xicons
© Copyright 2003-2024 WERK II Medien- und Informationsgesellschaft mbH. All Rights Reserved.

int strch (
     char* str,
     int pos,
     int value,
     int isBytePos = 0)

Change one byte of a string.

Documentation

Change one byte of a string. The function is usefull even to define the terminating 0 of a string.

As described above, the function sets bytes, NOT letters. Do not use this funktion to set UTF-8s like ä! Please use strreplace (or any osimilar) in this case!

Name Type Default Description
Return int   0 or ErrorCode
str char* - input string
pos int - position in string
val int - New value at the given position pos
isBytePos int 0 Is pos a letter or a byte position?

0 : pos is a letter position
1 : pos is a byte position. Please take care not destroying UTF-8 letters in this case!

v3.4 R7101, 3. Dec. 2014

priint:comet InDesign® Plug-Ins, comet_pdf, Illustrator

Alphabetic index HTML hierarchy of classes or Java


© Copyright 2003-2024 WERK II GmbH Duisburg
Authors :
      Paul Seidel
      Christoph Soergel
      Leo Quensel
      Mihg
This page was created using a modified version of doc++.

This documentation is part of the priint:comet InDesign®, InDesign Server® and Illustrator® plug-in and of the comet_pdf packages and is subject to the same license terms as priint:comet itself. The documentation may neither be passed on nor installed on public servers without the consent of WERK II GmbH.

The documentation describes the priint:comet scripting language cScript and provides support for solving technical problems when using the priint:comet plugins. The documentation is not a manual for the priint:comet plugins. A manual of the priint:comet plugins can be found here.

The documentation has been prepared with the greatest possible care. In case of errors or hints, please do not hesitate to contact our support. However, faulty or incomplete functional descriptions shall in no case result in an obligation on the part of WERK II GmbH to adapt the described item.

This copyright notice may not be removed or altered.