Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: escape-sequences in strings

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15930] Re: escape-sequences in strings
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 17 Feb 1999 23:34:00 -0500
  • Organization: Universitaet Leipzig
  • References: <7a2atd$1sb@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Timo,

a) the MathLink Reference manual is a part of the Mathematica Book
   page 630 and in the refernce section page 1256. There is also a
   PostScript version of the 2.x MathLink kit on MathSource

b) Mathematica works with Unicode. C-Strings are usual char[]'s and
   only 8 bit than 16 bit for unicode.  Your frontend must deal with the
   unicode and. Look to the PutByteString() and
   PutUnicodeString() in the reference section. The behaviour in the
   Mathematica book describe the escape sequences inside of Mathematica.
   What You see in the frontend is quite different from what you have
   inside a C-function, \[Beta] is *one* unicode character and inside
the
   frontend a nice greek letter. The character \ is the most special of
all
   and I would like to see what MLNextCharacter() returns.

Hope that helps
  Jens

Timo Felbinger wrote:
> 
> Hello,
> 
> I am currently working on a front end (in C) for Mathematica, which
> passes user-defined input via mathlink to the Mathematica kernel for
> evaluation.
> 

snip-snapp-snip-snapp

> BTW, where can I find the "MathLink Reference Manual" which is cited in
> Todd Gayley's mathlink tutorial? The "DeveloperGuide.nb" on my
> Mathematica CD isn't really helpful.
> 
> Timo
> 
> --
> Timo Felbinger   <Timo.Felbinger at quantum.physik.uni-potsdam.de> Quantum
> Physics Group
> Institute of Physics
> University of Potsdam, Germany


  • Prev by Date: Re: List manipulation question
  • Next by Date: Finite Differences and Mathematica?
  • Previous by thread: escape-sequences in strings
  • Next by thread: Re: escape-sequences in strings