~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Lib/csharp/std_string.i

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-06 10:27:08 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206102708-t37t62i45n595w0e
Tags: 1.3.33-2ubuntu1
* Merge with Debian; remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - Clean Runtime/ as well.
  - Force a few environment variables.
* debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
%typemap(ctype) string "char *"
27
27
%typemap(imtype) string "string"
28
28
%typemap(cstype) string "string"
 
29
 
29
30
%typemap(csdirectorin) string "$iminput"
30
31
%typemap(csdirectorout) string "$cscall"
31
32
 
34
35
    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
35
36
    return $null;
36
37
   }
37
 
   $1 = std::string($input); %}
 
38
   $1.assign($input); %}
38
39
%typemap(out) string %{ $result = SWIG_csharp_string_callback($1.c_str()); %}
39
40
 
40
41
%typemap(directorout, canthrow=1) string 
42
43
    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
43
44
    return $null;
44
45
   }
45
 
   $result = std::string($input); %}
 
46
   $result.assign($input); %}
46
47
 
47
48
%typemap(directorin) string %{ $input = SWIG_csharp_string_callback($1.c_str()); %}
48
49
 
52
53
    return ret;
53
54
  }
54
55
 
55
 
%typemap(csvarin, excode=SWIGEXCODE2) string %{
56
 
    set {
57
 
      $imcall;$excode
58
 
    } %}
59
 
%typemap(csvarout, excode=SWIGEXCODE2) string %{
60
 
    get {
61
 
      string ret = $imcall;$excode
62
 
      return ret;
63
 
    } %}
64
 
 
65
56
%typemap(typecheck) string = char *;
66
57
 
67
58
%typemap(throws, canthrow=1) string
72
63
%typemap(ctype) const string & "char *"
73
64
%typemap(imtype) const string & "string"
74
65
%typemap(cstype) const string & "string"
 
66
 
75
67
%typemap(csdirectorin) const string & "$iminput"
76
68
%typemap(csdirectorout) const string & "$cscall"
77
69